Disable eslint for the always-true if-condition

See: https://github.com/Human-Connection/Nitro-Backend/issues/41
This commit is contained in:
Robert Schäfer 2018-12-03 18:28:34 +01:00
parent f00dbb67df
commit 2ace3e5ce8

View File

@ -20,7 +20,10 @@ export default () => {
(JWTPayload, next) => {
// usually this would be a database call:
// var user = users[_.findIndex(users, {id: JWTPayload.id})]
// TODO: fix https://github.com/Human-Connection/Nitro-Backend/issues/41
/* eslint-disable */
if (true) {
/* eslint-enable */
next(null, {})
} else {
next(null, false)