X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/29afa4d9270a8ca0ea7d9756589170b718135465..e30b7ec3040cac89a2e134fddf8cb47c1905ea82:/lib/controller/semaphore.go diff --git a/lib/controller/semaphore.go b/lib/controller/semaphore.go index ff607bbb57..e1cda33f93 100644 --- a/lib/controller/semaphore.go +++ b/lib/controller/semaphore.go @@ -8,7 +8,6 @@ func semaphore(max int) (acquire, release func()) { if max > 0 { ch := make(chan bool, max) return func() { ch <- true }, func() { <-ch } - } else { - return func() {}, func() {} } + return func() {}, func() {} }