Skip to content

Commit 8212155

Browse files
committed
Remove duplicated code
1 parent e4bb412 commit 8212155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/RepositoryExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static Commit RetrieveHeadCommit(IRepository repository)
9898
{
9999
Commit commit = repository.Head.Tip;
100100

101-
Ensure.GitObjectIsNotNull(commit, "HEAD", m => new UnbornBranchException(m));
101+
Ensure.GitObjectIsNotNull(commit, "HEAD");
102102

103103
return commit;
104104
}

0 commit comments

Comments
 (0)