refactor: remove extraneous conditional on run step

This commit is contained in:
Marc 2024-08-15 18:37:00 -04:00
parent 6e0af0b058
commit bf2c311eef
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -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)
}
}