diff --git a/android/cli/hooks/run.js b/android/cli/hooks/run.js index 0d5d1081d8b..42bc7fa36fa 100644 --- a/android/cli/hooks/run.js +++ b/android/cli/hooks/run.js @@ -268,10 +268,8 @@ exports.init = function (logger, config, cli) { } // ignore some Android logs in info log level - for (let i = 0, len = ignoreLog.length; i < len; ++i) { - if (line.includes(ignoreLog[i])) { - return; - } + if (ignoreLog.some(ignoreItem => line.includes(ignoreItem))) { + return; } switch (logLevel) {