diff --git a/collector/device_filter.go b/collector/device_filter.go index 3e4bb5fe..d8a38a29 100644 --- a/collector/device_filter.go +++ b/collector/device_filter.go @@ -34,8 +34,8 @@ func newDeviceFilter(ignoredPattern, acceptPattern string) (f deviceFilter) { return } -// ignores returns whether the device should be ignored +// ignored returns whether the device should be ignored func (f *deviceFilter) ignored(name string) bool { - return ((f.ignorePattern != nil && f.ignorePattern.MatchString(name)) || - (f.acceptPattern != nil && !f.acceptPattern.MatchString(name))) + return (f.ignorePattern != nil && f.ignorePattern.MatchString(name)) || + (f.acceptPattern != nil && !f.acceptPattern.MatchString(name)) }