Removing jshint error.

JSHint mentioned following error:

'Did you mean to return a conditional instead of an assignment?'