mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
lint: Ignore === for == null check in sort task
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = function sortTask (user, req = {}) {
|
|||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
throw new NotFound(i18n.t('messageTaskNotFound', req.language));
|
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');
|
throw new BadRequest('?to=__&from=__ are required');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user