Could be compacted to:

```go
if ip, ok := <-alloc.queue; ok {
```