From: Eric Wong Date: Mon, 22 Aug 2022 02:33:45 +0000 (+0000) Subject: viewvcs: drop pointless variable assignment X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d52b0a01bebc0f56523a6f66c25ac38d500da4d9;p=public-inbox.git viewvcs: drop pointless variable assignment Not needed since commit: 41f03a3bd4b13dfa (viewvcs: do not show final error message twice, 2019-01-27) --- 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 = '
debug log:

' .
 		$l->to_html($log) . '
'; $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';