Skip to content

Commit

Permalink
this block can look nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 8, 2017
1 parent ff1b7da commit 6d781f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Mojolicious/Static.pm
Expand Up @@ -41,10 +41,8 @@ sub file {

# Search all paths
for my $path (@{$self->paths}) {
next
unless my $asset
= $self->_get_file(path($path, split('/', $rel))->to_string);
return $asset;
my $asset = $self->_get_file(path($path, split('/', $rel))->to_string);
return $asset if $asset;
}

# Search DATA
Expand Down

0 comments on commit 6d781f4

Please sign in to comment.