Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

chore(refactor): use array.includes()

Steven697fa1ca137e
diff --git a/lib/edge-config.ts b/lib/edge-config.ts
index e941b76af8..7e7c303bfd 100644
--- a/lib/edge-config.ts
+++ b/lib/edge-config.ts
@@ -30,7 +30,7 @@ export const isWhitelistedEmail = async (email: string) => {
} catch (e) {
whitelistedEmails = [];
}
- return new Set(whitelistedEmails).has(email);
+ return whitelistedEmails.includes(email);
};
export const isBlacklistedEmail = async (email: string) => {
@@ -50,5 +50,5 @@ export const isReservedKey = async (key: string) => {
} catch (e) {
reservedKey = [];
}
- return new Set(reservedKey).has(key);
+ return reservedKey.includes(key);
};