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

Commit 4861655

Browse files
committed
No walking the whole history for you!
1 parent 5a7fe67 commit 4861655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Exports/Helpers/SimpleRepositoryModelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class SimpleRepositoryModelExtensions
1212
public static bool HasCommits(this ISimpleRepositoryModel repository)
1313
{
1414
var repo = Services.GetRepoFromPath(repository.LocalPath);
15-
return repo?.Commits.Count() > 0;
15+
return repo?.Commits.Any() ?? false;
1616
}
1717
public static bool MightContainSolution(this ISimpleRepositoryModel repository)
1818
{

0 commit comments

Comments
 (0)