Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
Zickles committed Aug 2, 2024
1 parent e9bbcdc commit 40efdb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/events/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ function isUrlAllowed(url: string): boolean {
allowedDomains.some((pattern) => pattern === `*.${domain}`) ||
allowedDomains.some((pattern) => pattern === match[2] + domain)
);
} else {
return false;
}
return false;
}

async function getWebhook(
Expand Down

0 comments on commit 40efdb9

Please sign in to comment.