mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
This commit is contained in:
committed by
Ryan Gribble
parent
c223f5ae9a
commit
4e804f61a6
@@ -43,7 +43,7 @@ namespace Octokit
|
||||
/// <returns>A <see cref="IReadOnlyList{GpgKey}"/> of <see cref="GpgKey"/>s for the current user.</returns>
|
||||
public Task<IReadOnlyList<GpgKey>> GetAllForCurrent(ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return ApiConnection.GetAll<GpgKey>(ApiUrls.GpgKeys(), null, AcceptHeaders.GpgKeysPreview, options);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ namespace Octokit
|
||||
/// <returns>The newly created <see cref="GpgKey"/>.</returns>
|
||||
public Task<GpgKey> Create(NewGpgKey newGpgKey)
|
||||
{
|
||||
Ensure.ArgumentNotNull(newGpgKey, "newGpgKey");
|
||||
Ensure.ArgumentNotNull(newGpgKey, nameof(newGpgKey));
|
||||
|
||||
return ApiConnection.Post<GpgKey>(ApiUrls.GpgKeys(), newGpgKey, AcceptHeaders.GpgKeysPreview);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user