From 490559434a5735740eff4b7a44cc9e765c6506e1 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 2 Jul 2024 23:45:18 +0800 Subject: [PATCH] chore: remove unnecessary return (#4226) --- core/mr/mapreduce.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/mr/mapreduce.go b/core/mr/mapreduce.go index edb32808..a56a82fe 100644 --- a/core/mr/mapreduce.go +++ b/core/mr/mapreduce.go @@ -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 }