From 782b745180997e17fed3c7c2369a623ed2e05cfe Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Fri, 30 Mar 2018 20:31:48 +0000 Subject: convert: avoid redundant "done\n" statement for fast-import This bug was hidden due to timing problems with eatmydata or running with tmpfs for TMPDIR. --- script/public-inbox-convert | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script/public-inbox-convert') diff --git a/script/public-inbox-convert b/script/public-inbox-convert index 2b0a385e..e6fb4f5f 100755 --- a/script/public-inbox-convert +++ b/script/public-inbox-convert @@ -91,9 +91,8 @@ while (<$rd>) { $from = $1; # no next } - } elsif ($_ eq "done\n") { - last; } + last if $_ eq "done\n"; $w->print($_) or $im->wfail; } $w = $r = undef; -- cgit v1.2.3-24-ge0c7