X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/42b483f3a722ad8a506040160e54d0080a197318..d05b16ce4d4eea6841bf105081191f9964b485b7:/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() {} }