From 5d804e1e574ff2dcce3881405d1323271f667d8e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 7 Nov 2018 17:01:47 -0700 Subject: [PATCH] Appease the linter --- src/SlashCommands.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index b1884ae532..8a34ba7ab1 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -183,9 +183,9 @@ export const CommandMap = { auto_join: true, }); return success(); - } else if(params[0][0] === '!') { - let roomId = params[0]; - let viaServers = params.splice(0); + } else if (params[0][0] === '!') { + const roomId = params[0]; + const viaServers = params.splice(0); dis.dispatch({ action: 'view_room', @@ -197,7 +197,7 @@ export const CommandMap = { auto_join: true, }); return success(); - } else if(matrixToMatches) { + } else if (matrixToMatches) { let entity = matrixToMatches[1]; let eventId = null; let viaServers = []; @@ -237,7 +237,7 @@ export const CommandMap = { dispatch["opts"] = { // These are passed down to the js-sdk's /join call server_name: viaServers, - } + }; } dis.dispatch(dispatch);