Do not ignore failure to clean up the context (#876)

This commit is contained in:
mscherer 2022-04-07 01:08:04 +02:00 committed by GitHub
parent ee97977b93
commit 16cf59163e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,5 @@ func (e *local) Tail(context.Context, *types.Step) (io.ReadCloser, error) {
// Destroy the pipeline environment.
func (e *local) Destroy(context.Context, *types.Config) error {
_ = os.RemoveAll(e.cmd.Dir)
return nil
return os.RemoveAll(e.cmd.Dir)
}