mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 10:12:38 +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:
@@ -19,6 +19,8 @@ namespace Octokit
|
||||
|
||||
public static Uri FormatUri(this string pattern, params object[] args)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(pattern, "pattern");
|
||||
|
||||
return new Uri(string.Format(CultureInfo.InvariantCulture, pattern, args), UriKind.Relative);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user