mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-22 04:36:02 +03:00
Removed unreachable code
This commit is contained in:
parent
1355b53162
commit
10f2f33bad
@ -52,7 +52,6 @@ func (s *implementation) Release() error {
|
|||||||
case <-time.After(s.timeout):
|
case <-time.After(s.timeout):
|
||||||
return ErrIllegalRelease
|
return ErrIllegalRelease
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(tickets int, timeout time.Duration) Interface {
|
func New(tickets int, timeout time.Duration) Interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user