We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb7790 commit d0aab37Copy full SHA for d0aab37
lib/MetaCPAN/Web.pm
@@ -43,14 +43,7 @@ __PACKAGE__->config(
43
44
__PACKAGE__->log( Log::Log4perl::Catalyst->new( undef, autoflush => 1 ) );
45
46
-# Squash warnings when not in a terminal (like when running under Docker)
47
-# Catalyst throws warnings if it can't detect the size, even if $ENV{COLUMNS}
48
-# exists. Just lie to it to shut it up.
49
-use Term::Size::Perl ();
50
-if ( !Term::Size::Perl::chars() ) {
51
- no warnings 'once', 'redefine';
52
- *Term::Size::Perl::chars = sub { $ENV{COLUMNS} || 80 };
53
-}
+$ENV{COLUMNS} ||= 80;
54
55
after prepare_action => sub {
56
my ($self) = @_;
0 commit comments