summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@orange.fr>2019-04-24 12:35:00 +0200
committerguillaume <guillaume.cassou@orange.fr>2019-04-24 12:35:00 +0200
commit259ff3436f3eecf78b748e238e98bfda6817cc44 (patch)
tree4d824ca5687e2ebabcd58c80e69abfbed7560731 /client
parent8b3601248deb7f45d5bb5cb2d35d9a7ebaac1ab1 (diff)
downloadwekan-259ff3436f3eecf78b748e238e98bfda6817cc44.tar.gz
wekan-259ff3436f3eecf78b748e238e98bfda6817cc44.tar.bz2
wekan-259ff3436f3eecf78b748e238e98bfda6817cc44.zip
fix lints
Diffstat (limited to 'client')
-rw-r--r--client/components/main/layouts.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index 9d2e7ae2..d5113a25 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -113,11 +113,11 @@ async function authentication(event, instance) {
const match = $('#at-field-username_and_email').val();
const password = $('#at-field-password').val();
- if (!match || !password) return;
+ if (!match || !password) return undefined;
const result = await getAuthenticationMethod(instance.currentSetting.get(), match);
- if (result === 'password') return;
+ if (result === 'password') return undefined;
// Stop submit #at-pwd-form
event.preventDefault();
@@ -139,7 +139,7 @@ async function authentication(event, instance) {
});
default:
- return;
+ return undefined;
}
}