Enable staticcheck Go linter. (#23487)

#23486 

Linter: https://staticcheck.dev/
This commit is contained in:
Victor Lyuboslavsky
2024-11-05 11:16:24 -06:00
committed by GitHub
parent 3bfbc5654c
commit 3cf99f8039
27 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -24,8 +24,8 @@ func TestConvertFileOutput(t *testing.T) {
// setup a file for the convert command to write to
file, err := os.CreateTemp(t.TempDir(), "convert_output.yml")
defer file.Close()
require.NoError(t, err)
defer file.Close()
// get the program name
args := os.Args[0:1]