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 778ef12 commit 2a125efCopy full SHA for 2a125ef
lib/MetaCPAN/Web.pm
@@ -44,14 +44,7 @@ __PACKAGE__->config(
44
45
__PACKAGE__->log( Log::Log4perl::Catalyst->new( undef, autoflush => 1 ) );
46
47
-# Squash warnings when not in a terminal (like when running under Docker)
48
-# Catalyst throws warnings if it can't detect the size, even if $ENV{COLUMNS}
49
-# exists. Just lie to it to shut it up.
50
-use Term::Size::Perl ();
51
-if ( !Term::Size::Perl::chars() ) {
52
- no warnings 'once', 'redefine';
53
- *Term::Size::Perl::chars = sub { $ENV{COLUMNS} || 80 };
54
-}
+$ENV{COLUMNS} ||= 80;
55
56
after prepare_action => sub {
57
my ($self) = @_;
0 commit comments