about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-20 19:31:23 +0000
committerEric Wong <e@80x24.org>2014-04-20 19:31:23 +0000
commit99cf9d6201902e0cf34981b7ee3501b5f5163a8f (patch)
tree79fdcd51452975ab90e96c815f6eeb48228825f1
parent0e356ebfa0bbbbb2a7582657435cf681d92387f2 (diff)
downloadpublic-inbox-99cf9d6201902e0cf34981b7ee3501b5f5163a8f.tar.gz
Just in case there is an error, this should be more explicit.
-rw-r--r--lib/PublicInbox/Feed.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 81ac66b9..54feaf5b 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -327,8 +327,8 @@ sub do_cat_mail {
                                 die "failed to setup string handle: $!\n";
                 binmode $fh;
                 my $bytes = $git->cat_blob($sha1, $fh);
-                return if $bytes <= 0;
                 close $fh or die "failed to close string handle: $!\n";
+                return if $bytes <= 0;
         } else {
                 $str = `git cat-file blob $sha1`;
                 return if $? != 0 || length($str) == 0;