Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: shuangkun <tsk2013uestc@163.com>
  • Loading branch information
shuangkun committed Mar 18, 2024
1 parent 7383cba commit f8a264e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ spec:
Then().
ExpectWorkflow(func(t *testing.T, metadata *v1.ObjectMeta, status *v1alpha1.WorkflowStatus) {
assert.True(t, status.Fulfilled())
for _, node :=range status.Nodes {
for _, node := range status.Nodes {
if node.Type == v1alpha1.NodeTypeRetry {
if node.Phase == v1alpha1.NodeSucceeded {
assert.Equal(t, v1alpha1.WorkflowSucceeded, status.Phase)
Expand Down
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ func (woc *wfOperationCtx) deletePVCs(ctx context.Context) error {
// Check if we have a retry node which wasn't memoized and return that if we do
func (woc *wfOperationCtx) possiblyGetRetryChildNode(node *wfv1.NodeStatus) *wfv1.NodeStatus {
if node.Type == wfv1.NodeTypeRetry && !(node.MemoizationStatus != nil && node.MemoizationStatus.Hit) {
for i := len(node.Children)-1 ; i >= 0; i-- {
for i := len(node.Children) - 1; i >= 0; i-- {
childNode := getChildNodeIndex(node, woc.wf.Status.Nodes, i)
if childNode == nil {
continue
Expand Down

0 comments on commit f8a264e

Please sign in to comment.