sm
/
hw
1
0
Fork 0

React to lint errors

Esse commit está contido em:
Stephen McQuay 2018-03-08 16:31:06 -08:00
commit 0a1b6bbcb3
Assinado por: sm
ID da chave GPG: 4E4B72F479BA3CE5
1 arquivos alterados com 2 adições e 2 exclusões

Ver arquivo

@ -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)
}
}))