Fix two linting errors

This commit is contained in:
Rezart Qelibari 2019-05-10 05:20:30 +02:00
parent 3c6ee0ce62
commit a6390611ef
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ function getWildcardAddresses(username, domain) {
if (typeof username !== 'string' || typeof domain !== 'string') return []; if (typeof username !== 'string' || typeof domain !== 'string') return [];
let result = []; let result = [];
// <= generates the 'simple' wildcard (a la '*@') address. // <= generates the 'simple' wildcard (a la '*@') address.
for (var i = 1; i <= username.length; i++) { for (let i = 1; i <= username.length; i++) {
result.push('*' + username.substr(i) + '@' + domain); result.push('*' + username.substr(i) + '@' + domain);
} }
return result; return result;

View file

@ -136,7 +136,7 @@ class UserHandler {
username, username,
aliasDomain aliasDomain
); );
query.addrview['$in'] = query.addrview['$in'].concat(_aliasWildcards); query.addrview.$in = query.addrview.$in.concat(_aliasWildcards);
} }
// try to find a catch-all address // try to find a catch-all address