diff --git a/synchronization/semaphore2/main.go b/synchronization/semaphore2/main.go index 91d1b77..d472278 100644 --- a/synchronization/semaphore2/main.go +++ b/synchronization/semaphore2/main.go @@ -52,7 +52,6 @@ func (s *implementation) Release() error { case <-time.After(s.timeout): return ErrIllegalRelease } - return nil } func New(tickets int, timeout time.Duration) Interface {