Skip to content

Commit

Permalink
Merge pull request #647 from michal-josef-spacek/master
Browse files Browse the repository at this point in the history
Remove unused variable
  • Loading branch information
miyagawa authored Apr 28, 2020
2 parents f2bf055 + 8f2e703 commit 7435902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Plack/App/Directory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ sub return_dir_redirect {
}

sub serve_path {
my($self, $env, $dir, $fullpath) = @_;
my($self, $env, $dir) = @_;

if (-f $dir) {
return $self->SUPER::serve_path($env, $dir, $fullpath);
return $self->SUPER::serve_path($env, $dir);
}

my $dir_url = $env->{SCRIPT_NAME} . $env->{PATH_INFO};
Expand Down

0 comments on commit 7435902

Please sign in to comment.