commit 505685c6d546cab46f919f6b5296ca73b80d09b2 parent 6a1ca4bae672d7b6edc50c9a31b0404467714edb Author: hhvn <dev@hhvn.uk> Date: Sat, 18 Nov 2023 15:50:54 +0000 Eliminate pointless select Diffstat:
M | drw/x.go | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drw/x.go b/drw/x.go @@ -72,11 +72,7 @@ func init() { go func() { for { ev, err := xc.WaitForEvent() w := eventwrap{ev, err} - - select { - default: - Events <- &w - } + Events <- &w }}() }