Browse Source

add golint on the new box and fix appropriate lint

Barak Michener 11 years ago
parent
commit
d6aea2a795
2 changed files with 1 additions and 2 deletions
  1. 1 1
      etcdserver/config.go
  2. 0 1
      etcdserver/config_test.go

+ 1 - 1
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

+ 0 - 1
etcdserver/config_test.go

@@ -5,7 +5,6 @@ import (
 )
 
 func TestConfigVerify(t *testing.T) {
-
 	tests := []struct {
 		clusterSetting string
 		shouldError    bool