Chore: more refactor to the bun

This commit is contained in:
SukkaW
2023-11-15 15:53:29 +08:00
parent 071b8120a6
commit ec338a659f
5 changed files with 16 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ const getS3OSSDomains = async (): Promise<Set<string>> => {
const publicSuffixFile = Bun.file(publicSuffixPath);
if (await publicSuffixFile.exists()) {
for await (const line of readFileByLine(publicSuffixPath)) {
for await (const line of readFileByLine(publicSuffixFile)) {
trie.add(line);
}
} else {