diff options
author | Fabio B <kandinsky454@protonmail.ch> | 2019-01-08 01:43:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 01:43:35 +0800 |
commit | 99016cc5a6cc018eac08d715e649fadbe952fe21 (patch) | |
tree | 2ba40692e9035ebff495a08f811dcc353987183d /packages | |
parent | f1a7efc97ea4eb4305836a3fb1713a72cc12ac94 (diff) | |
download | dexon-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')
-rw-r--r-- | packages/monorepo-scripts/src/utils/discord.ts | 2 |
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"); } |