Skip to content

Commit 8ad75c6

Browse files
authored
fix (#599)
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com> Co-authored-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
1 parent 5cf69e8 commit 8ad75c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/task/module-run/task.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ func NewTask(
9292
//
9393
// ModuleRun is restarted if hook or chart is failed.
9494
// After first Handle success, no onStartup and kubernetes.Synchronization tasks will run.
95-
func (s *Task) Handle(ctx context.Context) queue.TaskResult {
95+
func (s *Task) Handle(ctx context.Context) (res queue.TaskResult) { //nolint:nonamedreturns
9696
defer trace.StartRegion(ctx, "ModuleRun").End()
9797

98-
var res queue.TaskResult
99-
10098
taskLogLabels := s.shellTask.GetLogLabels()
10199
s.logger = utils.EnrichLoggerWithLabels(s.logger, taskLogLabels)
102100

0 commit comments

Comments
 (0)