Browse Source

autotest: remove excessive close()s from showstate()'s error path

wip/maildir-path-under-inbox
Oswald Buddenhagen 3 years ago
parent
commit
5d7f2c7461
  1. 2
      src/run-tests.pl

2
src/run-tests.pl

@ -429,13 +429,11 @@ sub showstate($)
last OUTER if (!length($_)); last OUTER if (!length($_));
if (!/^([^ ]+) (\d+)$/) { if (!/^([^ ]+) (\d+)$/) {
print STDERR "Malformed sync state header entry: $_\n"; print STDERR "Malformed sync state header entry: $_\n";
close FILE;
return; return;
} }
$hdr{$1} = $2; $hdr{$1} = $2;
} }
print STDERR "Unterminated sync state header.\n"; print STDERR "Unterminated sync state header.\n";
close FILE;
return; return;
} }
my @T = ($hdr{'MaxPulledUid'} // "missing", my @T = ($hdr{'MaxPulledUid'} // "missing",

Loading…
Cancel
Save