Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
windkh committed Aug 2, 2021
1 parent 33a9acb commit 2136d02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telegrambot/99-telegrambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 2136d02

Please sign in to comment.