mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16: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
@@ -28,7 +28,7 @@ namespace Octokit
|
||||
/// <exception cref="ArgumentException">If the list of data points is not 3 elements</exception>
|
||||
public AdditionsAndDeletions(IList<long> additionsAndDeletions)
|
||||
{
|
||||
Ensure.ArgumentNotNull(additionsAndDeletions, "additionsAndDeletions");
|
||||
Ensure.ArgumentNotNull(additionsAndDeletions, nameof(additionsAndDeletions));
|
||||
if (additionsAndDeletions.Count != 3)
|
||||
{
|
||||
throw new ArgumentException("Addition and deletion aggregate must only contain three data points.");
|
||||
|
||||
Reference in New Issue
Block a user