autotest: remove excessive close()s from showstate()'s error path
This commit is contained in:
parent
254d2be9f4
commit
5d7f2c7461
|
@ -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…
Reference in New Issue
Block a user