Skip to content

Commit

Permalink
fix: remove check nil
Browse files Browse the repository at this point in the history
Signed-off-by: Evsyukov Denis <[email protected]>
  • Loading branch information
juev committed Dec 20, 2024
1 parent f036912 commit ccc5ec4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/shell-operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,6 @@ func (op *ShellOperator) handleRunHook(t task.Task, taskHook *hook.Hook, hookMet
return err
}

if result == nil {
return nil
}

if result.Usage != nil {
taskLogEntry.Debug("Usage", slog.String("value", fmt.Sprintf("%+v", result.Usage)))
op.MetricStorage.HistogramObserve("{PREFIX}hook_run_sys_seconds", result.Usage.Sys.Seconds(), metricLabels, nil)
Expand Down

0 comments on commit ccc5ec4

Please sign in to comment.