Skip to content

Commit 2f0b196

Browse files
committed
remove var
Signed-off-by: Fabian Martinez <[email protected]>
1 parent cd9b1e2 commit 2f0b196

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backend/orchestration.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,13 @@ func (w *orchestratorProcessor) applyWorkItem(ctx context.Context, wi *Orchestra
170170
// New events from the work item are appended to the orchestration state, with duplicates automatically
171171
// filtered out. If all events are filtered out, return false so that the caller knows not to execute
172172
// the orchestration logic for an empty set of events.
173-
added := 0
174173
for _, e := range wi.NewEvents {
175174
if err := runtimestate.AddEvent(wi.State, e); err != nil {
176175
if err == runtimestate.ErrDuplicateEvent {
177176
w.logger.Warnf("%v: dropping duplicate event: %v", wi.InstanceID, e)
178177
} else {
179178
w.logger.Warnf("%v: dropping event: %v, %v", wi.InstanceID, e, err)
180179
}
181-
} else {
182-
added++
183180
}
184181

185182
// Special case logic for specific event types

0 commit comments

Comments
 (0)