From 84b568a2358740b9d72cae33327adb0126b92fc1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 29 Nov 2018 15:16:45 -0700 Subject: [PATCH] Appease the linter --- src/SlashCommands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index eca4075fe9..24328d6372 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -148,8 +148,9 @@ export const CommandMap = { const userId = matches[1]; const inviter = new MultiInviter(roomId); return success(inviter.invite([userId]).then(() => { - if (inviter.getCompletionState(userId) !== "invited") + if (inviter.getCompletionState(userId) !== "invited") { throw new Error(inviter.getErrorText(userId)); + } })); } }