diff --git a/pkg/rocket/mission.go b/pkg/rocket/mission.go index 6a93475..242dd96 100644 --- a/pkg/rocket/mission.go +++ b/pkg/rocket/mission.go @@ -82,16 +82,16 @@ type ( // The list is checked prior too processing the activities own set of param definitions. MustHaveParams []string - // Exports is a list of exported variables from on task context to another + // Exports is a list of exported variables from on task context to another. Exports []string // Stages is a slice of stages. Stages []Stage - // Tasks is a slice of tasks + // Tasks is a slice of tasks. Tasks []Task - // Params is a slice of params + // Params is a slice of params. Params []Param // Param is an expandible parameter. diff --git a/pkg/rocket/missioncontrol.go b/pkg/rocket/missioncontrol.go index 2755645..d7cbf8b 100644 --- a/pkg/rocket/missioncontrol.go +++ b/pkg/rocket/missioncontrol.go @@ -55,7 +55,7 @@ type ( // ExecuteFunc is the function signature of an activity that can be executed. ExecuteFunc = loggee.ActivityFunc - // Stage map is a map of stage names to stages + // StageMap is a map of stage names to stages. StageMap map[string]Stage // TaskMap maps the task name to the task. @@ -837,7 +837,6 @@ func runOp(ctx context.Context, op *operation) error { if op.try { loggee.Warnf("try failed: %s", errors.Wrap(err, op.description)) } else { - if op.onFail != nil { runOnFail(ctx, op.onFail, op.description) }