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:
parent
01cfb93956
commit
b0543e89f4
8 changed files with 35 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue