Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fixed lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rammer <daniel@union.ai>
  • Loading branch information
hamersaw committed Sep 29, 2023
1 parent b728529 commit f919ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/nodes/node_exec_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ func newNodeExecContext(_ context.Context, store *storage.DataStore, execContext
func isAboveInterruptibleFailureThreshold(numFailures uint32, maxAttempts uint32, interruptibleThreshold int32) bool {
if interruptibleThreshold > 0 {
return numFailures >= uint32(interruptibleThreshold)
} else {
return numFailures >= maxAttempts-uint32(-interruptibleThreshold)
}

return numFailures >= maxAttempts-uint32(-interruptibleThreshold)
}

func (c *nodeExecutor) BuildNodeExecutionContext(ctx context.Context, executionContext executors.ExecutionContext,
Expand Down

0 comments on commit f919ad6

Please sign in to comment.