From 9cad2837d82703b79d04fb195dfad0ddd4bee6e7 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Fri, 9 Mar 2018 12:43:20 -0500 Subject: [PATCH] fix up go check warnings --- client/client.go | 2 +- nomad/node_endpoint_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index c3565e8d232..f414ed5c725 100644 --- a/client/client.go +++ b/client/client.go @@ -1152,7 +1152,7 @@ func (c *Client) run() { } // submitNodeEvents is used to submit a client-side node event. Examples of -// these kinds of events include when a driver moves from healthy to unhealhty +// these kinds of events include when a driver moves from healthy to unhealthy // (and vice versa) func (c *Client) submitNodeEvents(e []*structs.NodeEvent) error { node := c.Node() diff --git a/nomad/node_endpoint_test.go b/nomad/node_endpoint_test.go index 7af63be0c81..c140b0eb696 100644 --- a/nomad/node_endpoint_test.go +++ b/nomad/node_endpoint_test.go @@ -99,7 +99,7 @@ func TestClientEndpoint_EmitEvent(t *testing.T) { Timestamp: time.Now().Unix(), } - nodeEvents := map[string][]*structs.NodeEvent{node.ID: []*structs.NodeEvent{nodeEvent}} + nodeEvents := map[string][]*structs.NodeEvent{node.ID: {nodeEvent}} req := structs.EmitNodeEventRequest{ NodeEvents: nodeEvents, WriteRequest: structs.WriteRequest{Region: "global"},