Skip to content

Commit

Permalink
shorter syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jan 10, 2024
1 parent 087f806 commit dcc2373
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions iphone/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dcc2373

Please sign in to comment.