Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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