Skip to content

Commit

Permalink
fix: hide files with no error/warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzilong committed Mar 4, 2020
1 parent f37f481 commit a72ee31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module.exports = function ( results ) {
messages = []
} = result

if ( errorCount + warningCount === 0 ) {
return
}

totalErrorCount = totalErrorCount + errorCount
totalWarningCount = totalWarningCount + warningCount

Expand Down

0 comments on commit a72ee31

Please sign in to comment.