Skip to content

Commit

Permalink
chore: remove unnecessary return (#4226)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jul 2, 2024
1 parent 4a62d08 commit 4905594
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/mr/mapreduce.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ func newGuardedWriter[T any](ctx context.Context, channel chan<- T, done <-chan
func (gw guardedWriter[T]) Write(v T) {
select {
case <-gw.ctx.Done():
return
case <-gw.done:
return
default:
gw.channel <- v
}
Expand Down

0 comments on commit 4905594

Please sign in to comment.