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

Commit 0cb3401

Browse files
committed
Fix CA errors on CheckBindingPathsAsync
1 parent b6e86e3 commit 0cb3401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.VisualStudio/GitHubPackage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
180180
AddService(typeof(IPackageSettings), CreateService, true);
181181
}
182182

183+
#if DEBUG
183184
async Task CheckBindingPathsAsync()
184185
{
185-
#if DEBUG
186186
try
187187
{
188188
// When running in the Exp instance, ensure there is only one active binding path.
@@ -195,10 +195,10 @@ async Task CheckBindingPathsAsync()
195195
{
196196
log.Error(e, nameof(CheckBindingPathsAsync));
197197
}
198+
}
198199
#else
199-
return Task.CompletedTask;
200+
Task CheckBindingPathsAsync() => Task.CompletedTask;
200201
#endif
201-
}
202202

203203
public async Task<IGitHubPaneViewModel> ShowGitHubPane()
204204
{

0 commit comments

Comments
 (0)