Update golangci integration (#637)

* Update golangci integration

* Fix newly discovered errcheck complaints

* Increase timeout value
This commit is contained in:
Frederik Ring
2025-09-09 20:50:46 +02:00
committed by GitHub
parent cbaa17d048
commit 746b8f71f9
13 changed files with 99 additions and 90 deletions

View File

@@ -153,13 +153,13 @@ func source(path string) (map[string]string, error) {
currentValue, currentOk := os.LookupEnv(key)
defer func() {
if currentOk {
os.Setenv(key, currentValue)
_ = os.Setenv(key, currentValue)
return
}
os.Unsetenv(key)
_ = os.Unsetenv(key)
}()
result[key] = value
os.Setenv(key, value)
_ = os.Setenv(key, value)
}
}
return result, nil