From 391aa6e67ef9ab67304005e14ac0633cdb630713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Zanghelini?= Date: Thu, 8 Jun 2017 15:37:37 -0300 Subject: [PATCH] ESLint - Fix mixed conditionals --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 8c952a0503..8aa609a32a 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -44,7 +44,7 @@ authenticationController.register = function (req, res) { err = '[[error:invalid-email]]'; } - if (!err && !userData.username || userData.username.length < meta.config.minimumUsernameLength) { + if (!err && (!userData.username || userData.username.length < meta.config.minimumUsernameLength)) { err = '[[error:username-too-short]]'; }