private static IList<URIish> GetURIs(RemoteConfig cfg, Transport.Operation op) { switch (op) { case Transport.Operation.FETCH: { return cfg.URIs; } case Transport.Operation.PUSH: { IList<URIish> uris = cfg.PushURIs; if (uris.IsEmpty()) { uris = cfg.URIs; } return uris; } default: { throw new ArgumentException(op.ToString()); } } }