swarmd/cmd/swarmctl/network/common.go
Function GetNetwork
has 5 return statements (exceeds 4 allowed). Open
Open
func GetNetwork(ctx context.Context, c api.ControlClient, input string) (*api.Network, error) {
// GetService to match via full ID.
rg, err := c.GetNetwork(ctx, &api.GetNetworkRequest{NetworkID: input})
if err != nil {
// If any error (including NotFound), ListServices to match via full name.