Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 70a9090

Browse files
committed
Yay C# 6!
1 parent 62acdd4 commit 70a9090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Exports/Models/SimpleRepositoryModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public SimpleRepositoryModel(string name, UriString cloneUrl, string localPath =
2424
public SimpleRepositoryModel(string path)
2525
{
2626
if (path == null)
27-
throw new ArgumentNullException("path");
27+
throw new ArgumentNullException(nameof(path));
2828
var dir = new DirectoryInfo(path);
2929
if (!dir.Exists)
30-
throw new ArgumentException("Path does not exist", path);
30+
throw new ArgumentException("Path does not exist", nameof(path));
3131
var uri = GitHelpers.GetRepoFromPath(path)?.GetUri();
3232
var name = uri?.NameWithOwner;
3333
if (name == null)

0 commit comments

Comments
 (0)