mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +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
@@ -6,28 +6,28 @@ namespace Octokit
|
||||
{
|
||||
public static Uri GetPreviousPageUrl(this ApiInfo info)
|
||||
{
|
||||
Ensure.ArgumentNotNull(info, "info");
|
||||
Ensure.ArgumentNotNull(info, nameof(info));
|
||||
|
||||
return info.Links.SafeGet("prev");
|
||||
}
|
||||
|
||||
public static Uri GetNextPageUrl(this ApiInfo info)
|
||||
{
|
||||
Ensure.ArgumentNotNull(info, "info");
|
||||
Ensure.ArgumentNotNull(info, nameof(info));
|
||||
|
||||
return info.Links.SafeGet("next");
|
||||
}
|
||||
|
||||
public static Uri GetFirstPageUrl(this ApiInfo info)
|
||||
{
|
||||
Ensure.ArgumentNotNull(info, "info");
|
||||
Ensure.ArgumentNotNull(info, nameof(info));
|
||||
|
||||
return info.Links.SafeGet("first");
|
||||
}
|
||||
|
||||
public static Uri GetLastPageUrl(this ApiInfo info)
|
||||
{
|
||||
Ensure.ArgumentNotNull(info, "info");
|
||||
Ensure.ArgumentNotNull(info, nameof(info));
|
||||
|
||||
return info.Links.SafeGet("last");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user