refactor: remove extraneous conditional on run step
This commit is contained in:
parent
6e0af0b058
commit
bf2c311eef
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue