Skip to content

Commit

Permalink
refactor(discord): remove redundant log count checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 committed Dec 16, 2022
1 parent 6b01a31 commit a62870a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/notifiers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class DiscordNotifier extends BaseNotifier<"Discord"> {
throw new Error("DiscordNotifier is not initialized");
}

if (pairs.length <= 0) {
return;
}

const data: DiscordWebhookData = {
content: null,
embeds: [
Expand Down

0 comments on commit a62870a

Please sign in to comment.