mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 02:18:44 +00:00
Use base type for argument
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user