Refactor: minor simplifications

This commit is contained in:
SukkaW
2024-05-27 00:20:49 +08:00
parent e4429a62ee
commit 8b1eeb1c14
4 changed files with 45 additions and 42 deletions

View File

@@ -131,13 +131,11 @@ export const getPhishingDomains = (parentSpan: Span) => parentSpan.traceChild('g
}
});
span.traceChildSync('get final phishing results', () => {
for (const domain in domainCountMap) {
if (domainCountMap[domain] >= 8) {
domainArr.push(`.${domain}`);
}
for (const domain in domainCountMap) {
if (domainCountMap[domain] >= 8) {
domainArr.push(`.${domain}`);
}
});
}
return domainArr;
});