diff --git a/command/agent/agent_endpoint.go b/command/agent/agent_endpoint.go index 60ab62ea0f..6c9bc9c526 100644 --- a/command/agent/agent_endpoint.go +++ b/command/agent/agent_endpoint.go @@ -671,6 +671,6 @@ func (h *httpLogHandler) HandleLog(log string) { default: // Just increment a counter for dropped logs to this handler; we can't log now // because the lock is already held by the LogWriter invoking this - h.droppedCount += 1 + h.droppedCount++ } } diff --git a/command/agent/http_test.go b/command/agent/http_test.go index 185881a85d..d20429fb68 100644 --- a/command/agent/http_test.go +++ b/command/agent/http_test.go @@ -52,7 +52,7 @@ func makeHTTPServerWithACLs(t *testing.T) (string, *HTTPServer) { func makeHTTPServerWithConfigLog(t *testing.T, cb func(c *Config), l io.Writer, logWriter *logger.LogWriter) (string, *HTTPServer) { configTry := 0 RECONF: - configTry += 1 + configTry++ conf := nextConfig() if cb != nil { cb(conf) diff --git a/command/agent/txn_endpoint.go b/command/agent/txn_endpoint.go index c60ce38a7c..0e9f054839 100644 --- a/command/agent/txn_endpoint.go +++ b/command/agent/txn_endpoint.go @@ -136,7 +136,7 @@ func (s *HTTPServer) convertOps(resp http.ResponseWriter, req *http.Request) (st verb := api.KVOp(in.KV.Verb) if isWrite(verb) { - writes += 1 + writes++ } out := &structs.TxnOp{ diff --git a/consul/client_test.go b/consul/client_test.go index 0195c9be3b..b6ab5b9de6 100644 --- a/consul/client_test.go +++ b/consul/client_test.go @@ -297,7 +297,7 @@ func TestClient_RPC_ConsulServerPing(t *testing.T) { if !ok { t.Errorf("Unable to ping server %v: %s", s.String(), err) } - pingCount += 1 + pingCount++ // Artificially fail the server in order to rotate the server // list