Skip to content

Commit 3d2c2bf

Browse files
authored
Do not increment Count operator in case of error (#261)
1 parent a2dd674 commit 3d2c2bf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

observable_operator.go

-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,6 @@ func (op *countOperator) next(_ context.Context, _ Item, _ chan<- Item, _ operat
657657
}
658658

659659
func (op *countOperator) err(_ context.Context, _ Item, _ chan<- Item, operatorOptions operatorOptions) {
660-
op.count++
661660
operatorOptions.stop()
662661
}
663662

0 commit comments

Comments
 (0)