add golint on the new box and fix appropriate lint

This commit is contained in:
Barak Michener 2014-10-06 20:16:25 -04:00
parent 8a311e5b76
commit d6aea2a795
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

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