Skip to content

Commit a11329c

Browse files
committed
remove comment
Signed-off-by: Yuteng Chen <a08h0283@gmail.com>
1 parent 16c0851 commit a11329c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

runs/service/run_service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ func (s *RunService) buildActionDetails(ctx context.Context, model *models.Actio
420420
case common.ActionPhase_ACTION_PHASE_FAILED:
421421
// Get action error from last attempt. Events are eventually consistent, so we may not have
422422
// information from the latest attempt yet.
423-
// When status.Attempts is 0, attempt tracking was not provided by the caller, so we use
424-
// the last attempt's error info unconditionally.
425423
numAttempts := len(action.GetAttempts())
426424
statusAttempts := action.GetStatus().GetAttempts()
427425
if numAttempts > 0 && (statusAttempts == 0 || action.GetAttempts()[numAttempts-1].GetAttempt() == statusAttempts) {

0 commit comments

Comments
 (0)