Skip to content

Commit

Permalink
Do not increment Count operator in case of error (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
teivah committed Oct 28, 2020
1 parent a2dd674 commit 3d2c2bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion observable_operator.go
Expand Up @@ -657,7 +657,6 @@ func (op *countOperator) next(_ context.Context, _ Item, _ chan<- Item, _ operat
}

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

Expand Down

0 comments on commit 3d2c2bf

Please sign in to comment.