Skip to content

Commit

Permalink
Let Rainbow handle color management
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Apr 26, 2024
1 parent 1c8b2c1 commit aa70798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/html_proofer/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def colorize(level, message)
:red
end

if (STDOUT_LEVELS.include?(level) && $stdout.isatty) ||
(STDERR_LEVELS.include?(level) && $stderr.isatty)
if STDOUT_LEVELS.include?(level) ||
STDERR_LEVELS.include?(level)
Rainbow(message).send(color)
else
message
Expand Down

0 comments on commit aa70798

Please sign in to comment.