Skip to content

Commit

Permalink
remove warnings on Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jul 19, 2011
1 parent 8430afe commit 0003353
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Plack/Util.pm
Expand Up @@ -27,7 +27,10 @@ sub load_class {
sub is_real_fh ($) {
my $fh = shift;

return FALSE if -p $fh or -c _ or -b _;
{
no warnings 'uninitialized';
return FALSE if -p $fh or -c _ or -b _;
}

my $reftype = Scalar::Util::reftype($fh) or return;
if ( $reftype eq 'IO'
Expand Down

0 comments on commit 0003353

Please sign in to comment.