Skip to content

Commit

Permalink
triple-symbol equals/unequals
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Sep 28, 2023
1 parent f33a7fe commit 48a4350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/dominator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ async function execute(interaction: ChatInputCommandInteraction) {
} as Partial<MemberDominator>);
} else if (ATTRIBUTES.includes(attribute)) {
const triggerData = { communityID: interaction.guildId } as any;

Check warning on line 75 in commands/dominator.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected any. Specify a different type
if (action != null && action != undefined) triggerData[`${attribute}_action`] = action;
if (threshold != null && threshold != undefined) triggerData[`${attribute}_threshold`] = threshold;
if (action !==null && action !==undefined) triggerData[`${attribute}_action`] = action;
if (threshold !==null && threshold !==undefined) triggerData[`${attribute}_threshold`] = threshold;
await dominator.update(triggerData);
}

Expand Down

0 comments on commit 48a4350

Please sign in to comment.