Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
silence a warning on older versions of Perl
  • Loading branch information
kraih committed Nov 19, 2017
1 parent e1f26e5 commit 35fc9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -16,7 +16,7 @@ sub run {
my ($self, @args) = @_;

# Data from STDIN
vec(my $r, fileno(STDIN), 1) = 1;
vec(my $r = '', fileno(STDIN), 1) = 1;
my $in = !-t STDIN && select($r, undef, undef, 0) ? join '', <STDIN> : undef;

my $ua = Mojo::UserAgent->new(ioloop => Mojo::IOLoop->singleton);
Expand Down

0 comments on commit 35fc9d6

Please sign in to comment.