Skip to content

Commit

Permalink
fix: fix variable scope (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Jan 12, 2024
1 parent d58061e commit a9961b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ export const sendMessage = async (channel, message) => {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function send(eventObj, proposal, _subscribers) {
const event = eventObj.event;
try {
const event = eventObj.event;

// Only supports proposal/start event
if (event !== 'proposal/start') return;

Expand Down

0 comments on commit a9961b1

Please sign in to comment.