Skip to content

Commit

Permalink
Fixes Perl 5.10 warnings (closes #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Khabibullin committed Jan 20, 2017
1 parent 957a281 commit 509895b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Raisin/Middleware/Formatter.pm
Expand Up @@ -62,8 +62,12 @@ sub call {
});
}

sub _path_has_extension { scalar(split /\./, shift) > 1 }
sub _accept_header_set { length(shift) }
sub _accept_header_set { length(shift || '') }
sub _path_has_extension {
my $path = shift;
my @chunks = split /\./, $path;
scalar(@chunks) > 1;
}

sub negotiate_format {
my ($self, $req) = @_;
Expand Down

0 comments on commit 509895b

Please sign in to comment.