From d12bf23b46361eba01d14b134ef630489eea8919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 30 Nov 2022 23:40:59 +0100 Subject: [PATCH] v0.0.27 --- syncext/atomic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncext/atomic.go b/syncext/atomic.go index f95ad59..d1e4ce6 100644 --- a/syncext/atomic.go +++ b/syncext/atomic.go @@ -13,9 +13,9 @@ type AtomicBool struct { func NewAtomicBool(value bool) *AtomicBool { if value { - return &AtomicBool{v: 0, waiter: make(chan bool)} - } else { return &AtomicBool{v: 1, waiter: make(chan bool)} + } else { + return &AtomicBool{v: 0, waiter: make(chan bool)} } }