From 293bd15ee90a6cafd610aedd48f2bada3710b4af Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 11 May 2020 11:05:03 +0100 Subject: [PATCH] fix variable name shadowing Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/SlashCommands.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index ea561d9f12..3fa6c0d7ee 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -993,7 +993,7 @@ export const Commands = [ command: "msg", description: _td("Sends a message to the given user"), args: " ", - runFn: function(roomId, args) { + runFn: function(_, args) { if (args) { const matches = args.match(/^(\S+?)(?: +(.*))?$/s); if (matches) {