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

This commit is contained in:
Oswald Buddenhagen 2022-01-24 01:04:38 +01:00
parent 254d2be9f4
commit 5d7f2c7461

View File

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