Skip to content

Commit

Permalink
check static files a little faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 3, 2014
1 parent 8448666 commit bd00a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -134,7 +134,7 @@ sub _get_data_file {
sub _get_file {
my ($self, $path) = @_;
no warnings 'newline';
return -f $path && -r $path ? Mojo::Asset::File->new(path => $path) : undef;
return -f $path && -r _ ? Mojo::Asset::File->new(path => $path) : undef;
}

sub _warmup {
Expand Down

0 comments on commit bd00a16

Please sign in to comment.