Skip to content

Commit

Permalink
chore: replace += 1 with ++
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkfi committed Feb 15, 2022
1 parent 57b5483 commit 3843c7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pkg/apply/solver/solver.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (t *TaskQueueBuilder) AppendInvAddTask(inv inventory.InventoryInfo, applyOb
Objects: applyObjs,
DryRun: dryRun,
})
t.invAddCounter += 1
t.invAddCounter++
return t
}

Expand All @@ -129,7 +129,7 @@ func (t *TaskQueueBuilder) AppendInvSetTask(inv inventory.InventoryInfo, dryRun
PrevInventory: prevInvIds,
DryRun: dryRun,
})
t.invSetCounter += 1
t.invSetCounter++
return t
}

Expand All @@ -143,7 +143,7 @@ func (t *TaskQueueBuilder) AppendDeleteInvTask(inv inventory.InventoryInfo, dryR
InvInfo: inv,
DryRun: dryRun,
})
t.deleteInvCounter += 1
t.deleteInvCounter++
return t
}

Expand All @@ -165,7 +165,7 @@ func (t *TaskQueueBuilder) AppendApplyTask(applyObjs object.UnstructuredSet,
InfoHelper: t.InfoHelper,
Mapper: t.Mapper,
})
t.applyCounter += 1
t.applyCounter++
return t
}

Expand All @@ -182,7 +182,7 @@ func (t *TaskQueueBuilder) AppendWaitTask(waitIds object.ObjMetadataSet, conditi
waitTimeout,
t.Mapper),
)
t.waitCounter += 1
t.waitCounter++
return t
}

Expand All @@ -203,7 +203,7 @@ func (t *TaskQueueBuilder) AppendPruneTask(pruneObjs object.UnstructuredSet,
Destroy: t.Destroy,
},
)
t.pruneCounter += 1
t.pruneCounter++
return t
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/print/table/columndefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var (
if err != nil {
return realLength, err
}
realLength += 1
realLength++
}
}
return realLength, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func VerifyEvents(expEvents []ExpEvent, events []event.Event) error {
e := events[i]
ee := expEvents[expEventIndex]
if isMatch(ee, e) {
expEventIndex += 1
expEventIndex++
if expEventIndex >= len(expEvents) {
return nil
}
Expand Down

0 comments on commit 3843c7e

Please sign in to comment.