From 4d7408ac810a1352c9a0f7fb1dc4b51754ef8337 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 27 Jun 2019 18:43:59 +0200 Subject: [PATCH] fix(pkg/internal): rm collect humidities --- pkg/internal/collect/humidity.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 pkg/internal/collect/humidity.go diff --git a/pkg/internal/collect/humidity.go b/pkg/internal/collect/humidity.go deleted file mode 100644 index 8dc8ae4..0000000 --- a/pkg/internal/collect/humidity.go +++ /dev/null @@ -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 - } - } -}