Skip to content

Commit

Permalink
fix: remote useless spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Sep 1, 2024
1 parent 9b6f218 commit a501855
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions config/compiler/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ func CompileEvent(sh *config.JobEvent, cr *cron.Cron, logger *logrus.Entry) abst
logger,
)
return &event

case sh.OnInit:
event := event.Init{}
return &event

case sh.Docker != nil:
d := sh.Docker
con := utils.FirstNonZeroForced(d.Connection,
Expand Down Expand Up @@ -66,8 +64,6 @@ func CompileEvent(sh *config.JobEvent, cr *cron.Cron, logger *logrus.Entry) abst
return nil
}
return e

}

return nil
}
2 changes: 0 additions & 2 deletions config/compiler/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func CompileTask(ctx context.Context, t *config.Task, logger *logrus.Entry) abst
if exe == nil {
logger.Panic("did not received any executable action from given task", t)
}

onDone := []abstraction.Executable{}
for _, d := range t.OnDone {
onDone = append(onDone, CompileTask(ctx, &d, logger))
Expand All @@ -36,6 +35,5 @@ func CompileTask(ctx context.Context, t *config.Task, logger *logrus.Entry) abst
onFail = append(onFail, CompileTask(ctx, &d, logger))
}
exe.SetFailHooks(ctx, onFail)

return exe
}

0 comments on commit a501855

Please sign in to comment.