From 10f2f33badf1b8a011ba2ed576cb23e08753dba5 Mon Sep 17 00:00:00 2001 From: Tommaso Stocchi Date: Mon, 2 Nov 2020 11:01:32 +0100 Subject: [PATCH] Removed unreachable code --- synchronization/semaphore2/main.go | 1 - 1 file changed, 1 deletion(-) 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 {