Skip to content

Commit

Permalink
fix: hide unchanged diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Oct 12, 2020
1 parent a1a2960 commit 127f70f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ if (validate) {
color = '[0m'
}

process.stderr.write('\x1b' + color + part.value + '\x1b[0m')
if (color !== '[0m') {
process.stderr.write('\x1b' + color + part.value + '\x1b[0m')
}
})

process.exit(difference.length)
Expand Down

0 comments on commit 127f70f

Please sign in to comment.