React to lint errors

This commit is contained in:
sm
2018-03-08 16:31:06 -08:00
parent 2cd78f4310
commit 5e6cd2c254
+2 -2
View File
@@ -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)
}
}))