about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-18 08:17:50 +0000
committerEric Wong <e@80x24.org>2017-01-18 08:17:50 +0000
commit488211c1f3066cebfe5d74332527dcc790ddd740 (patch)
treefdc831dd5f2ead79d45b24af9cb36264bd3135ca
parentf3416dbbc14b76235242c4937396438abc4d1c63 (diff)
downloadpublic-inbox-488211c1f3066cebfe5d74332527dcc790ddd740.tar.gz
Remove an outdated comment while we're at it, too.
-rw-r--r--lib/PublicInbox/RepobrowseGitPatch.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/RepobrowseGitPatch.pm b/lib/PublicInbox/RepobrowseGitPatch.pm
index e8820f72..dc6cd793 100644
--- a/lib/PublicInbox/RepobrowseGitPatch.pm
+++ b/lib/PublicInbox/RepobrowseGitPatch.pm
@@ -26,11 +26,9 @@ sub call_git_patch {
         my $range = "$id~1..$id^0";
         my @cmd = ('git', "--git-dir=$git->{git_dir}", @CMD,
                         $sig." $range", $range, '--');
-        if (defined(my $expath = $req->{expath})) {
-                push @cmd, $expath if $expath ne '';
-        }
+        my $expath = $req->{expath};
+        push @cmd, $expath if $expath ne '';
 
-        # FIXME: generalize this with other qspawn users
         my $qsp = PublicInbox::Qspawn->new(\@cmd);
         $qsp->psgi_return($env, undef, sub {
                 my ($r) = @_;