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

Commit 5a7fe67

Browse files
committed
Make the method name clearer as to its purpose
1 parent c5cd608 commit 5a7fe67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.Exports/Helpers/SimpleRepositoryModelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static bool HasCommits(this ISimpleRepositoryModel repository)
1414
var repo = Services.GetRepoFromPath(repository.LocalPath);
1515
return repo?.Commits.Count() > 0;
1616
}
17-
public static bool HasContent(this ISimpleRepositoryModel repository)
17+
public static bool MightContainSolution(this ISimpleRepositoryModel repository)
1818
{
1919
var dir = new DirectoryInfo(repository.LocalPath);
2020
return dir.EnumerateFileSystemInfos("*", SearchOption.TopDirectoryOnly)

src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void HandleCreatedRepo(ISimpleRepositoryModel newrepo)
233233
void HandleClonedRepo(ISimpleRepositoryModel newrepo)
234234
{
235235
var msg = string.Format(CultureInfo.CurrentUICulture, Constants.Notification_RepoCloned, newrepo.Name, newrepo.CloneUrl);
236-
if (newrepo.HasCommits() && newrepo.HasContent())
236+
if (newrepo.HasCommits() && newrepo.MightContainSolution())
237237
msg += " " + string.Format(CultureInfo.CurrentUICulture, Constants.Notification_OpenProject, newrepo.LocalPath);
238238
else
239239
msg += " " + string.Format(CultureInfo.CurrentUICulture, Constants.Notification_CreateNewProject, newrepo.LocalPath);

0 commit comments

Comments
 (0)