Use base type for argument

This commit is contained in:
Haacked
2015-08-04 21:18:39 -07:00
parent 0b13411ef5
commit 8a7e5efa81
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ namespace Octokit
/// Constructs an instance of ApiValidationException
/// </summary>
/// <param name="innerException">The inner exception</param>
protected ApiValidationException(ApiValidationException innerException)
protected ApiValidationException(ApiException innerException)
: base(innerException)
{
}
+2 -2
View File
@@ -16,13 +16,13 @@ namespace Octokit
{
}
public NewAuthorization(string note, string[] scopes)
public NewAuthorization(string note, IEnumerable<string> scopes)
{
Scopes = scopes;
Note = note;
}
public NewAuthorization(string note, string[] scopes, string fingerprint)
public NewAuthorization(string note, IEnumerable<string> scopes, string fingerprint)
{
Scopes = scopes;
Note = note;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewRepositoryHook
{
public NewRepositoryHook(string name, Dictionary<string, string> config)
public NewRepositoryHook(string name, IReadOnlyDictionary<string, string> config)
{
Name = name;
Config = config;