aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio B <kandinsky454@protonmail.ch>2019-01-08 01:43:35 +0800
committerGitHub <noreply@github.com>2019-01-08 01:43:35 +0800
commit99016cc5a6cc018eac08d715e649fadbe952fe21 (patch)
tree2ba40692e9035ebff495a08f811dcc353987183d /packages/monorepo-scripts
parentf1a7efc97ea4eb4305836a3fb1713a72cc12ac94 (diff)
downloaddexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar.gz
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar.bz2
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar.lz
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar.xz
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.tar.zst
dexon-sol-tools-99016cc5a6cc018eac08d715e649fadbe952fe21.zip
Use explicit undefined check
Co-Authored-By: steveklebanoff <steve@0xproject.com>
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/utils/discord.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/utils/discord.ts b/packages/monorepo-scripts/src/utils/discord.ts
index 2f3afef45..3a0458769 100644
--- a/packages/monorepo-scripts/src/utils/discord.ts
+++ b/packages/monorepo-scripts/src/utils/discord.ts
@@ -6,7 +6,7 @@ import { utils } from './utils';
export const alertDiscordAsync = async (releaseNotes: string): Promise<void> => {
const webhookUrl = constants.discordAlertWebhookUrl;
- if (!webhookUrl) {
+ if (webhookUrl === undefined) {
throw new Error("No discord webhook url, can't alert");
}