From 5d7f2c74614db0652421f3c6f4663263dac6b255 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 24 Jan 2022 01:04:38 +0100 Subject: [PATCH] autotest: remove excessive close()s from showstate()'s error path --- src/run-tests.pl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/run-tests.pl b/src/run-tests.pl index 035706c..d8d8350 100755 --- a/src/run-tests.pl +++ b/src/run-tests.pl @@ -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",