mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-08 17:07:44 +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 [];
|
||||
let result = [];
|
||||
// <= 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);
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -136,7 +136,7 @@ class UserHandler {
|
|||
username,
|
||||
aliasDomain
|
||||
);
|
||||
query.addrview['$in'] = query.addrview['$in'].concat(_aliasWildcards);
|
||||
query.addrview.$in = query.addrview.$in.concat(_aliasWildcards);
|
||||
}
|
||||
|
||||
// try to find a catch-all address
|
||||
|
|
Loading…
Reference in a new issue