Skip to content

Commit

Permalink
Change to always show when a file is saved
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 13, 2023
1 parent 7bef2d2 commit 0973e65
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,10 @@ function createFileLine(state, file) {
(file.stored && name !== toPath ? ' > ' + toPath : '')
}

// To do: always expose `written` if stored?
if (!stats.total) {
right += file.stored
? state.yellow + 'written' + state.defaultColor
: 'no issues found'
if (file.stored) {
right = state.yellow + 'written' + state.defaultColor
} else if (!stats.total) {
right = 'no issues found'
}

return left && right ? left + ': ' + right : left + right
Expand Down

0 comments on commit 0973e65

Please sign in to comment.