From abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:43:33 +0200 Subject: all: apply linter auto fixes ./tools/syz-env bin/golangci-lint run ./... --fix --- syz-ci/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syz-ci/manager.go') diff --git a/syz-ci/manager.go b/syz-ci/manager.go index f21933118..ab1e0820b 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -1074,7 +1074,7 @@ func uploadFileHTTPPut(ctx context.Context, URL string, file io.Reader) error { return fmt.Errorf("failed to perform HTTP PUT request: %w", err) } defer resp.Body.Close() - if !(resp.StatusCode >= 200 && resp.StatusCode <= 299) { + if resp.StatusCode < 200 || resp.StatusCode > 299 { return fmt.Errorf("HTTP PUT failed with status code: %v", resp.StatusCode) } return nil -- cgit mrf-deployment