remove empty lines

This commit is contained in:
byron 2024-03-27 00:16:41 -04:00 committed by GitHub
parent 9edb4c01f2
commit 83fedd4df1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,6 @@ export function executeWebhook(_, url: string, body: object) {
const { hostname, pathname } = new URL(url); const { hostname, pathname } = new URL(url);
if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(hostname) || !pathname.startsWith("/api/webhooks/")) { if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(hostname) || !pathname.startsWith("/api/webhooks/")) {
throw new Error("This URL is not a valid webhook."); throw new Error("This URL is not a valid webhook.");
} }