Fix the last of the eslint errors (for real this time)
diff --git a/src/commands/mod/unmute.ts b/src/commands/mod/unmute.ts
index 18363d5..fbe6d66 100644
--- a/src/commands/mod/unmute.ts
+++ b/src/commands/mod/unmute.ts
@@ -17,7 +17,8 @@
let reason = null;
let notify = false;
let confirmation;
- while (true) {
+ let success = false;
+ while (!success) {
confirmation = await new confirmationMessage(interaction)
.setEmoji("PUNISH.MUTE.RED")
.setTitle("Unmute")
@@ -32,9 +33,9 @@
.setColor("Danger")
.addReasonButton(reason ?? "")
.send(reason !== null);
- if (confirmation.success) break;
- if (confirmation.newReason) reason = confirmation.newReason;
- if (confirmation.components) {
+ if (confirmation.success) success = true;
+ else if (confirmation.newReason) reason = confirmation.newReason;
+ else if (confirmation.components) {
notify = confirmation.components.notify.active;
}
}