Browse Source

React to lint errors

master v0.1.1
Stephen McQuay 2 years ago
parent
commit
0a1b6bbcb3
Signed by: sm GPG Key ID: 4E4B72F479BA3CE5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cmd/hwc/main.go

+ 2
- 2
cmd/hwc/main.go 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)
}
}))

Loading…
Cancel
Save