Skip to content

Commit 542c8b0

Browse files
sergeibbbeamodio
authored andcommitted
fixes isMaybeConnected to let it return undefined on unknown value
(#4145)
1 parent 73e07c2 commit 542c8b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plus/integrations/integrationService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,9 @@ export class IntegrationService implements Disposable {
964964
return this.getMyPullRequestsCore(integrations);
965965
}
966966

967-
isMaybeConnected(remote: GitRemote): boolean {
967+
isMaybeConnected(remote: GitRemote): boolean | undefined {
968968
if (remote.provider?.id != null && this.supports(remote.provider.id)) {
969-
return this.getByRemoteCached(remote)?.maybeConnected ?? false;
969+
return this.getByRemoteCached(remote)?.maybeConnected;
970970
}
971971
return false;
972972
}

0 commit comments

Comments
 (0)