From 2ace3e5ce814ef38f55bbb316f33cf033af56a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Mon, 3 Dec 2018 18:28:34 +0100 Subject: [PATCH] Disable eslint for the always-true if-condition See: https://github.com/Human-Connection/Nitro-Backend/issues/41 --- src/jwt/strategy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jwt/strategy.js b/src/jwt/strategy.js index 80774b65b..0807c3fd1 100644 --- a/src/jwt/strategy.js +++ b/src/jwt/strategy.js @@ -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)