Perf/Refactor: processHosts now returns string[]

This commit is contained in:
SukkaW
2024-05-26 18:22:44 +08:00
parent aa3cb9e586
commit 6b0151be29
3 changed files with 8 additions and 11 deletions

View File

@@ -21,6 +21,5 @@ export const normalizeDomain = (domain: string) => {
h = h.slice(sliceStart, sliceEnd);
}
if (h) return h;
return null;
return h || null;
};