From 2136d02e9cb50eaadeb93ba466d8b861ff8027a4 Mon Sep 17 00:00:00 2001 From: Karl-Heinz Wind Date: Mon, 2 Aug 2021 23:33:22 +0200 Subject: [PATCH] lint --- telegrambot/99-telegrambot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegrambot/99-telegrambot.js b/telegrambot/99-telegrambot.js index 3505dce..3646c53 100644 --- a/telegrambot/99-telegrambot.js +++ b/telegrambot/99-telegrambot.js @@ -603,13 +603,13 @@ module.exports = function (RED) { this.isCommandRegistered = function (command) { let found = false; - for (var key in self.commandsByNode){ - if (self.commandsByNode[key].command === command){ + for (let key in self.commandsByNode) { + if (self.commandsByNode[key].command === command) { found = true; break; } } - + return found; };