Conform more of the codebase to strict types (#11191)
This commit is contained in:
parent
4044c2aa66
commit
8107f1d271
25 changed files with 88 additions and 57 deletions
|
@ -1105,7 +1105,7 @@ export const Commands = [
|
|||
try {
|
||||
cli.forceDiscardSession(roomId);
|
||||
} catch (e) {
|
||||
return reject(e.message);
|
||||
return reject(e instanceof Error ? e.message : e);
|
||||
}
|
||||
return success();
|
||||
},
|
||||
|
@ -1134,7 +1134,7 @@ export const Commands = [
|
|||
}),
|
||||
);
|
||||
} catch (e) {
|
||||
return reject(e.message);
|
||||
return reject(e instanceof Error ? e.message : e);
|
||||
}
|
||||
},
|
||||
category: CommandCategories.advanced,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue