Skip to content

Commit 7fca3b4

Browse files
committed
fixup! Bump golangci-lint to v2.11.4 and fix lint issues for Go 1.26
fixup! suppress pre-existing gosec false positive in job_test.go
1 parent 3fea812 commit 7fca3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ray-operator/controllers/ray/common/job_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ pip: ["python-multipart==0.0.6"]
265265
if expected[i] == "--runtime-env-json" {
266266
// Decode the JSON string from the next element.
267267
var expectedMap, actualMap map[string]any
268-
unquoteExpected, err1 := strconv.Unquote(expected[i+1])
268+
unquoteExpected, err1 := strconv.Unquote(expected[i+1]) //nolint:gosec // loop bounds guarantee i+1 is valid
269269
require.NoError(t, err1)
270-
unquotedCommand, err2 := strconv.Unquote(command[i+1])
270+
unquotedCommand, err2 := strconv.Unquote(command[i+1]) //nolint:gosec // loop bounds guarantee i+1 is valid
271271
require.NoError(t, err2)
272272
err1 = json.Unmarshal([]byte(unquoteExpected), &expectedMap)
273273
err2 = json.Unmarshal([]byte(unquotedCommand), &actualMap)

0 commit comments

Comments
 (0)