mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 06:35:11 +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:
@@ -16,6 +16,8 @@ namespace Octokit.Reactive.Clients
|
||||
|
||||
public IObservable<User> Get(string login)
|
||||
{
|
||||
Ensure.ArgumentNotNull(login, "login");
|
||||
|
||||
return client.Get(login).ToObservable();
|
||||
}
|
||||
|
||||
@@ -26,6 +28,8 @@ namespace Octokit.Reactive.Clients
|
||||
|
||||
public IObservable<User> Update(UserUpdate user)
|
||||
{
|
||||
Ensure.ArgumentNotNull(user, "user");
|
||||
|
||||
return client.Update(user).ToObservable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user