removed unnecessary string literal and simplified stuff

This commit is contained in:
almeidx 2021-07-29 10:08:55 +01:00
parent 392e7fc56e
commit afe0ec1194
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
17 changed files with 23 additions and 25 deletions

View file

@ -391,7 +391,7 @@ async function performMemberSearch(
return true;
}
const fullUsername = `${member.user.tag}`;
const fullUsername = member.user.tag;
if (await execRegExp(queryRegex, fullUsername).catch(allowTimeout)) return true;
return false;
@ -458,7 +458,7 @@ async function performBanSearch(
const execRegExp = getOptimizedRegExpRunner(pluginData, isSafeRegex);
matchingBans = await asyncFilter(matchingBans, async user => {
const fullUsername = `${user.tag}`;
const fullUsername = user.tag;
if (await execRegExp(queryRegex, fullUsername).catch(allowTimeout)) return true;
return false;
});