Remove duplicate error message

This commit is contained in:
Kyle Havlovitz 2017-09-01 10:18:43 -07:00
parent ff994e9ade
commit 1a36ca524f
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 2 additions and 5 deletions

View File

@ -2,17 +2,14 @@
package command package command
import ( import consulapi "github.com/hashicorp/consul/api"
consulapi "github.com/hashicorp/consul/api"
"fmt"
)
// getSegmentMembers returns an empty list since network segments are not // getSegmentMembers returns an empty list since network segments are not
// supported in OSS Consul. // supported in OSS Consul.
func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) { func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) {
members, err := client.Agent().MembersOpts(consulapi.MembersOpts{}) members, err := client.Agent().MembersOpts(consulapi.MembersOpts{})
if err != nil { if err != nil {
return nil, fmt.Errorf("Error retrieving members: %s", err) return nil, err
} }
return members, nil return members, nil