From bf2c311eef27a0dd72e628a0f4ce116cbcd9b092 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 15 Aug 2024 18:37:00 -0400 Subject: [PATCH] refactor: remove extraneous conditional on run step --- internal/runner/runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/runner/runner.go b/internal/runner/runner.go index d07c7f7..4c307bc 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -135,8 +135,8 @@ func (r *Runner) RunJobInContainer(imageUri string, containerId string, job work for _, step := range job.Steps { logger.Info("Run: %s", step.Run) - if err := r.RunCommandInContainer(containerId, step.Run); err != nil { - return err + if step.Run != "" { + return r.RunCommandInContainer(containerId, step.Run) } }