diff options
Diffstat (limited to 'common/build.go')
| -rw-r--r-- | common/build.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/build.go b/common/build.go index fa11ef1b..14ddb467 100644 --- a/common/build.go +++ b/common/build.go @@ -389,10 +389,8 @@ func (b *Build) retryCreateExecutor(options ExecutorPrepareOptions, provider Exe if err == nil { break } - if executor != nil { - executor.Cleanup() - executor = nil - } + executor.Cleanup() + executor = nil if _, ok := err.(*BuildError); ok { break } else if options.Context.Err() != nil { |
