about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseGitPlain.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitPlain.pm')
-rw-r--r--lib/PublicInbox/RepobrowseGitPlain.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/PublicInbox/RepobrowseGitPlain.pm b/lib/PublicInbox/RepobrowseGitPlain.pm
index c59993fe..c985173c 100644
--- a/lib/PublicInbox/RepobrowseGitPlain.pm
+++ b/lib/PublicInbox/RepobrowseGitPlain.pm
@@ -13,12 +13,7 @@ sub call_git_plain {
         my $q = PublicInbox::RepobrowseGitQuery->new($req->{env});
         my $id = $q->{id};
         $id eq '' and $id = 'HEAD';
-
-        if (length(my $expath = $req->{expath})) {
-                $id .= ":$expath";
-        } else {
-                $id .= ':';
-        }
+        $id .= ":$req->{expath}";
         my ($cat, $hex, $type, $size) = $git->cat_file_begin($id);
         return unless defined $cat;