mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-09 09:27:38 +08:00
Fix two linting errors
This commit is contained in:
parent
3c6ee0ce62
commit
a6390611ef
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue