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

Commit 9365c54

Browse files
committed
Make string capitalization consistent
1 parent 4d4a864 commit 9365c54

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/GitHub.TeamFoundation.14/Connect/GitHubConnectSection.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ protected GitHubConnectContent View
5252
bool LoggedIn
5353
{
5454
get { return loggedIn; }
55-
set {
55+
set
56+
{
5657
loggedIn = ShowLogout = value;
5758
ShowLogin = !value;
5859
}
@@ -308,20 +309,20 @@ void HandleCreatedRepo(ILocalRepositoryModel newrepo)
308309
{
309310
Guard.ArgumentNotNull(newrepo, nameof(newrepo));
310311

311-
var msg = String.Format(CultureInfo.CurrentCulture, Constants.Notification_RepoCreated, newrepo.Name, newrepo.CloneUrl);
312-
msg += " " + String.Format(CultureInfo.CurrentCulture, Constants.Notification_CreateNewProject, newrepo.LocalPath);
312+
var msg = string.Format(CultureInfo.CurrentCulture, Constants.Notification_RepoCreated, newrepo.Name, newrepo.CloneUrl);
313+
msg += " " + string.Format(CultureInfo.CurrentCulture, Constants.Notification_CreateNewProject, newrepo.LocalPath);
313314
ShowNotification(newrepo, msg);
314315
}
315316

316317
void HandleClonedRepo(ILocalRepositoryModel newrepo)
317318
{
318319
Guard.ArgumentNotNull(newrepo, nameof(newrepo));
319320

320-
var msg = String.Format(CultureInfo.CurrentCulture, Constants.Notification_RepoCloned, newrepo.Name, newrepo.CloneUrl);
321+
var msg = string.Format(CultureInfo.CurrentCulture, Constants.Notification_RepoCloned, newrepo.Name, newrepo.CloneUrl);
321322
if (newrepo.HasCommits() && newrepo.MightContainSolution())
322-
msg += " " + String.Format(CultureInfo.CurrentCulture, Constants.Notification_OpenProject, newrepo.LocalPath);
323+
msg += " " + string.Format(CultureInfo.CurrentCulture, Constants.Notification_OpenProject, newrepo.LocalPath);
323324
else
324-
msg += " " + String.Format(CultureInfo.CurrentCulture, Constants.Notification_CreateNewProject, newrepo.LocalPath);
325+
msg += " " + string.Format(CultureInfo.CurrentCulture, Constants.Notification_CreateNewProject, newrepo.LocalPath);
325326
ShowNotification(newrepo, msg);
326327
}
327328

@@ -330,7 +331,7 @@ void ShowNotification(ILocalRepositoryModel newrepo, string msg)
330331
Guard.ArgumentNotNull(newrepo, nameof(newrepo));
331332

332333
var teServices = ServiceProvider.TryGetService<ITeamExplorerServices>();
333-
334+
334335
teServices.ClearNotifications();
335336
teServices.ShowMessage(
336337
msg,

0 commit comments

Comments
 (0)