mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
add golint on the new box and fix appropriate lint
This commit is contained in:
parent
8a311e5b76
commit
d6aea2a795
@ -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
|
||||
|
@ -5,7 +5,6 @@ import (
|
||||
)
|
||||
|
||||
func TestConfigVerify(t *testing.T) {
|
||||
|
||||
tests := []struct {
|
||||
clusterSetting string
|
||||
shouldError bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user