From 16cf59163e75206800211186e6a1ccde9c161655 Mon Sep 17 00:00:00 2001 From: mscherer Date: Thu, 7 Apr 2022 01:08:04 +0200 Subject: [PATCH] Do not ignore failure to clean up the context (#876) --- pipeline/backend/local/local.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipeline/backend/local/local.go b/pipeline/backend/local/local.go index 2154b3763..5cb8bb77c 100644 --- a/pipeline/backend/local/local.go +++ b/pipeline/backend/local/local.go @@ -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) }