about summary refs log tree commit homepage
path: root/lib/PublicInbox/ViewVCS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-08-22 02:33:45 +0000
committerEric Wong <e@80x24.org>2022-08-23 04:19:01 +0000
commitd52b0a01bebc0f56523a6f66c25ac38d500da4d9 (patch)
tree1665e500a41e5a122bb6e0011f8e4d5ef07c6b13 /lib/PublicInbox/ViewVCS.pm
parent20e17ab617026ec61a6878b5b954b86a2ca69a08 (diff)
downloadpublic-inbox-d52b0a01bebc0f56523a6f66c25ac38d500da4d9.tar.gz
Not needed since commit:
41f03a3bd4b13dfa (viewvcs: do not show final error message twice, 2019-01-27)
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r--lib/PublicInbox/ViewVCS.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index d3fd152d..94656ad3 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -114,13 +114,12 @@ sub solve_result {
         }
         $log = do { local $/; <$log> };
 
-        my $ref = ref($res);
         my $l = PublicInbox::Linkify->new;
         $log = '<pre>debug log:</pre><hr /><pre>' .
                 $l->to_html($log) . '</pre>';
 
         $res or return html_page($ctx, 404, \$log);
-        $ref eq 'ARRAY' or return html_page($ctx, 500, \$log);
+        ref($res) eq 'ARRAY' or return html_page($ctx, 500, \$log);
 
         my ($git, $oid, $type, $size, $di) = @$res;
         return show_other($ctx, $res, \$log, $fn) if $type ne 'blob';