mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +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:
@@ -10,6 +10,10 @@ namespace Octokit.Reactive
|
||||
string owner,
|
||||
string name)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, "client");
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
return client.GetReadme(owner, name).SelectMany(r => r.GetHtmlContent().ToObservable());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user