worker: only remove temp output directory once
We already do this in a defer.
This commit is contained in:
parent
5d2f2402cf
commit
b7cb2cff62
1 changed files with 0 additions and 5 deletions
|
|
@ -314,11 +314,6 @@ func RunJob(job worker.Job, store string, kojiServers map[string]koji.GSSAPICred
|
|||
}
|
||||
}
|
||||
|
||||
err = os.RemoveAll(outputDirectory)
|
||||
if err != nil {
|
||||
log.Printf("Error removing osbuild output directory (%s): %v", outputDirectory, err)
|
||||
}
|
||||
|
||||
if len(r) > 0 {
|
||||
return result, &TargetsError{r}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue