Update linter for golang v1.25 compatibility

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2026-03-10 19:55:51 -06:00
committed by Christian Goll
parent 019408d076
commit 081d2ec61e
48 changed files with 156 additions and 115 deletions

View File

@@ -175,7 +175,7 @@ func (env *TestEnv) WriteFile(fileName string, content string) {
f, err := os.Create(env.GetPath(fileName))
env.assertNoError(err)
defer f.Close()
defer func() { _ = f.Close() }()
_, err = f.WriteString(content)
env.assertNoError(err)
err = os.Chtimes(env.GetPath(fileName),