osbuild-worker-executor: fix lint warnings/errors

The osbuild-composer linting found a bunch of issues that this
commit fixes.
This commit is contained in:
Sanne Raymaekers 2024-06-05 12:58:44 +02:00 committed by Michael Vogt
parent 01cfb93956
commit b0543e89f4
8 changed files with 35 additions and 31 deletions

View file

@ -27,7 +27,9 @@ func handleResult(logger *logrus.Logger, config *Config) http.Handler {
return
}
defer f.Close()
io.Copy(w, f)
if _, err := io.Copy(w, f); err != nil {
logger.Errorf("Unable to write log to response")
}
return
case buildResult.Good():
// good result