diff --git a/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs b/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs index 534408a7e6..0275aca549 100644 --- a/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs +++ b/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs @@ -166,22 +166,7 @@ public IObservable CheckMember(string org, string user) Ensure.ArgumentNotNullOrEmptyString(org, "org"); Ensure.ArgumentNotNullOrEmptyString(user, "user"); - try - { - var response = await Connection.Get(ApiUrls.CheckMember(org, user), null, null).ConfigureAwait(false); - var statusCode = response.HttpResponse.StatusCode; - if (statusCode != HttpStatusCode.NotFound - && statusCode != HttpStatusCode.NoContent - && statusCode != HttpStatusCode.Found) - { - throw new ApiException("Invalid Status Code returned. Expected a 204, a 302 or a 404", statusCode); - } - return statusCode == HttpStatusCode.NoContent; - } - catch (NotFoundException) - { - return false; - } + return _client.CheckMember(org, user).ToObservable(); } ///