fix(pkg/internal): rm collect humidities

This commit is contained in:
Markus Pesch 2019-06-27 18:43:59 +02:00
parent 4975ce21fa
commit 4d7408ac81
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -1,20 +0,0 @@
package collect
import "github.com/go-flucky/flucky/pkg/types"
func Humidities(humidityChannel <-chan *types.Humidity) []*types.Humidity {
humidityList := make([]*types.Humidity, 0)
for {
select {
case hum, more := <-humidityChannel:
if more {
humidityList = append(humidityList, hum)
continue
}
return nil
default:
return humidityList
}
}
}