Skip to content

Commit 8970fe1

Browse files
committed
chore: disable noUselessElse
1 parent 45d6040 commit 8970fe1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

biome.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
"linter": {
1818
"enabled": true,
1919
"rules": {
20-
"recommended": true
20+
"recommended": true,
21+
22+
"style": {
23+
"noUselessElse": "off"
24+
}
2125
}
2226
},
2327

src/commands/util/close.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ export async function handleIssueStateCommand(interaction: ChatInputCommandInter
6464
if (await isHelpPost(interactionChannel)) {
6565
if (canUserInteractWithThread(interaction.channel as ThreadChannel, interaction.user)) {
6666
return handleIssueState(interaction, close, lock);
67-
68-
// biome-ignore lint/style/noUselessElse: the else is not useless
6967
} else {
7068
await interaction.reply({
7169
content: `You cannot ${stateVerb} this thread since you are not the OP.`,

src/commands/util/walkthrough.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export async function doWalkthrough(channel: GuildTextBasedChannel, interaction?
3939
if(interaction) {
4040
// TODO: check if walkthrough has already been sent
4141
return interaction.reply(message);
42-
43-
// biome-ignore lint/style/noUselessElse: the else is not useless
4442
} else {
4543
return channel.send(message);
4644
}

0 commit comments

Comments
 (0)