Skip to content

Commit

Permalink
clarify use of Term::ANSIColor::color() in TAP::Formatter::Color
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Oct 5, 2016
1 parent 4789cca commit 279e44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/TAP/Formatter/Color.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ my $NO_COLOR;
BEGIN {
$NO_COLOR = 0;

eval 'use Term::ANSIColor';
eval 'require Term::ANSIColor';
if ($@) {
$NO_COLOR = $@;
};
Expand All @@ -28,7 +28,7 @@ BEGIN {
} else {
*set_color = sub {
my ( $self, $output, $color ) = @_;
$output->( color($color) );
$output->( Term::ANSIColor::color($color) );
};
}
}
Expand Down

0 comments on commit 279e44f

Please sign in to comment.