From 4606f95384396d3423590d1331c5c72219535fcb Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Wed, 12 Jun 2019 22:56:46 -0700 Subject: [PATCH] minor --- cmd/unifi-poller/jsondebug.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/unifi-poller/jsondebug.go b/cmd/unifi-poller/jsondebug.go index 545d29a1..a7fa3d57 100644 --- a/cmd/unifi-poller/jsondebug.go +++ b/cmd/unifi-poller/jsondebug.go @@ -24,7 +24,8 @@ func (c *Config) DumpJSON(filter string) error { fmt.Fprintf(os.Stderr, "[ERROR] "+m, v...) } // Log all errors to stderr. - switch sites, err := filterSites(controller, c.Sites); { + sites, err := filterSites(controller, c.Sites) + switch { case err != nil: return err case StringInSlice(filter, []string{"d", "device", "devices"}):