Fix jshint warning about ternary operator placement.