diff --git a/collector/zfs_linux.go b/collector/zfs_linux.go index 735e2154..ca29ff69 100644 --- a/collector/zfs_linux.go +++ b/collector/zfs_linux.go @@ -74,10 +74,6 @@ func (c *zfsCollector) updatePoolStats(ch chan<- prometheus.Metric) error { return err } - if zpoolPaths == nil { - return nil - } - for _, zpoolPath := range zpoolPaths { file, err := os.Open(zpoolPath) if err != nil {