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

Commit a7d80b3

Browse files
committed
Use named args instead of vars
1 parent a4eb753 commit a7d80b3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/GitHub.InlineReviews/Services/PullRequestStatusBarManager.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async Task RefreshCurrentSession(LocalRepositoryModel repository, IPullRequestSe
9494
var showStatus = await IsDotComOrEnterpriseRepository(repository);
9595
if (!showStatus)
9696
{
97-
var view = ShowStatus(null);
97+
ShowStatus(null);
9898
return;
9999
}
100100

@@ -112,14 +112,14 @@ void NoRemoteOriginCallout()
112112
return;
113113
}
114114

115-
var calloutId = Guids.NoRemoteOriginCalloutId;
116-
var title = Resources.CantFindGitHubUrlForRepository;
117-
var message = Resources.RepositoriesMustHaveRemoteOrigin;
118-
var isDismissable = true;
119-
var commandSet = Guids.guidGitHubCmdSet;
120-
var commandId = (uint)PkgCmdIDList.showGitHubPaneCommand;
121-
tippingService.Value.RequestCalloutDisplay(calloutId, title, message,
122-
isDismissable, view, commandSet, commandId);
115+
tippingService.Value.RequestCalloutDisplay(
116+
calloutId: Guids.NoRemoteOriginCalloutId,
117+
title: Resources.CantFindGitHubUrlForRepository,
118+
message: Resources.RepositoriesMustHaveRemoteOrigin,
119+
isPermanentlyDismissible: true,
120+
targetElement: view,
121+
vsCommandGroupId: Guids.guidGitHubCmdSet,
122+
vsCommandId: PkgCmdIDList.showGitHubPaneCommand);
123123
}
124124

125125
async Task<bool> IsDotComOrEnterpriseRepository(LocalRepositoryModel repository)

0 commit comments

Comments
 (0)