From d6aea2a795b9c5ba8619c87787d5d98b665f26ec Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Mon, 6 Oct 2014 20:16:25 -0400 Subject: [PATCH] add golint on the new box and fix appropriate lint --- etcdserver/config.go | 2 +- etcdserver/config_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/etcdserver/config.go b/etcdserver/config.go index c0b00b868..a9871611c 100644 --- a/etcdserver/config.go +++ b/etcdserver/config.go @@ -25,7 +25,7 @@ func (c *ServerConfig) Verify() error { // Make sure the cluster at least contains the local server. m := c.Cluster.FindName(c.Name) if m == nil { - return fmt.Errorf("could not find name %v in cluster!", c.Name) + return fmt.Errorf("could not find name %v in cluster", c.Name) } // No identical IPs in the cluster peer list diff --git a/etcdserver/config_test.go b/etcdserver/config_test.go index e02d834b5..9d8297d28 100644 --- a/etcdserver/config_test.go +++ b/etcdserver/config_test.go @@ -5,7 +5,6 @@ import ( ) func TestConfigVerify(t *testing.T) { - tests := []struct { clusterSetting string shouldError bool