File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ray-operator/controllers/ray/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments