Skip to content

Commit

Permalink
lint: Ignore === for == null check in sort task
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed May 24, 2016
1 parent 8faf730 commit 02d075e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/script/ops/sortTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function sortTask (user, req = {}) {
if (index === -1) {
throw new NotFound(i18n.t('messageTaskNotFound', req.language));
}
if (to == null && fromParam == null) {
if (to == null && fromParam == null) { // eslint-disable-line eqeqeq
throw new BadRequest('?to=__&from=__ are required');
}

Expand Down

0 comments on commit 02d075e

Please sign in to comment.