120 logger.Info("start")
121 defer logger.Info("end")
122
123 for {124 select {
125 case b := <-bt.checkBuildsChan:
126 if b == nil {
Select statements with a single case can be replaced with a simple send or
receive. If you intend to handle the case when no value is received from
the channel, add a default
case to make the select
statement non-blocking.
select {
case x := <-ch:
fmt.Println(x)
}
x := <-ch
fmt.Println(x)