diff --git a/iphone/cli/hooks/run.js b/iphone/cli/hooks/run.js index 4ec1ac5452b..ec41e90b7c6 100644 --- a/iphone/cli/hooks/run.js +++ b/iphone/cli/hooks/run.js @@ -75,10 +75,8 @@ exports.init = function (logger, config, cli) { } // ignore logs from cli ignoreLog - for (let i = 0, len = ignoreLog.length; i < len; ++i) { - if (line.includes(ignoreLog[i])) { - return; - } + if (ignoreLog.some(ignoreItem => line.includes(ignoreItem))) { + return; } if (levels.indexOf(lastLogger) === -1) {