Appease the linter
This commit is contained in:
parent
987ad0b0db
commit
84b568a235
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue