Add missing 'else'

This commit is contained in:
Johannes Zellner
2016-04-05 16:25:05 +02:00
parent 94faa3575c
commit baf586b028

View File

@@ -201,7 +201,7 @@ function update(userId, user, callback) {
if (k === 'username') {
assert.strictEqual(typeof user.username, 'string');
args.push(user.username || null);
} if (k === 'email') {
} else if (k === 'email') {
assert.strictEqual(typeof user.email, 'string');
args.push(user.email.toLowerCase());
} else {