]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: remove unnecessary test when closing file descriptor
[Gitweb] / gitweb.perl
index 275c32d0bbb1a67bffed8ca7249711af0ee85c64aad3776a155d73b9177629dd..39d6a8dda400f1f92c99a35db433ad6c5075d456d0ec7e0c6891d26ff549bcfe 100755 (executable)
@@ -3466,8 +3466,7 @@ sub run_highlighter {
        my ($fd, $highlight, $syntax) = @_;
        return $fd unless ($highlight && defined $syntax);
 
-       close $fd
-               or die_error(404, "Reading blob failed");
+       close $fd;
        open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ".
                  quote_command($highlight_bin).
                  " --xhtml --fragment --syntax $syntax |"
This page took 0.270181 seconds and 4 git commands to generate.