From 0a1b6bbcb3aa6d468f9df852a3a784431fcf3c07 Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Thu, 8 Mar 2018 16:31:06 -0800 Subject: [PATCH] React to lint errors --- cmd/hwc/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/hwc/main.go b/cmd/hwc/main.go index baa2c99..945ccec 100644 --- a/cmd/hwc/main.go +++ b/cmd/hwc/main.go @@ -49,7 +49,7 @@ func (s *state) update(target string) { panic(err) } s.Lock() - s.Counts[rv.Hostname] += 1 + s.Counts[rv.Hostname]++ s.Unlock() } } @@ -95,7 +95,7 @@ func main() { fetcher.RLock() defer fetcher.RUnlock() - if err := json.NewEncoder(w).Encode(fetcher); err != nil { + if err := json.NewEncoder(w).Encode(&fetcher); err != nil { log.Printf("json: %+v", err) } }))