aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/manager.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:43:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commitabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch)
tree522a8cc072d07d85c8a1d37b5b3ab89483599b48 /syz-ci/manager.go
parenta81f309b57265e5760b926274e1f1681e7550e41 (diff)
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'syz-ci/manager.go')
-rw-r--r--syz-ci/manager.go2
1 files changed, 1 insertions, 1 deletions
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