fossasia/susi_telegrambot

View on GitHub

Showing 1 of 1 total issue

Avoid deeply nested control flow statements.
Open

          for (var i = 1; i < 4; i++) {
                            msg = "";
              msg = key[1].toUpperCase() + ": " + data[i][key[1]] + "\n" + key[2].toUpperCase() + ": " + data[i][key[2]] + "\n" + key[3].toUpperCase() + ": " + data[i][key[3]];
                            bot.sendMessage(chatId, msg);
          }
Severity: Major
Found in app.js - About 45 mins to fix
    Severity
    Category
    Status
    Source
    Language