mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 20:45:51 +00:00
Add null checks and fix CodeAnalysis errors.
I enabled code analysis to the Octokit.Reactive project and needed to fix things up.
This commit is contained in:
@@ -17,6 +17,8 @@ namespace Octokit.Reactive.Clients
|
||||
|
||||
public IObservable<Organization> Get(string org)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, "org");
|
||||
|
||||
return client.Get(org).ToObservable();
|
||||
}
|
||||
|
||||
@@ -27,6 +29,8 @@ namespace Octokit.Reactive.Clients
|
||||
|
||||
public IObservable<IReadOnlyCollection<Organization>> GetAll(string user)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(user, "user");
|
||||
|
||||
return client.GetAll(user).ToObservable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user