Browse Source

React to lint errors

Stephen McQuay 1 year ago
parent
commit
0a1b6bbcb3
Signed by: Stephen McQuay (smcquay) <stephen@mcquay.me> 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) {
49 49
 			panic(err)
50 50
 		}
51 51
 		s.Lock()
52
-		s.Counts[rv.Hostname] += 1
52
+		s.Counts[rv.Hostname]++
53 53
 		s.Unlock()
54 54
 	}
55 55
 }
@@ -95,7 +95,7 @@ func main() {
95 95
 
96 96
 		fetcher.RLock()
97 97
 		defer fetcher.RUnlock()
98
-		if err := json.NewEncoder(w).Encode(fetcher); err != nil {
98
+		if err := json.NewEncoder(w).Encode(&fetcher); err != nil {
99 99
 			log.Printf("json: %+v", err)
100 100
 		}
101 101
 	}))

Loading…
Cancel
Save