Skip to content

Commit cb23bb8

Browse files
committed
Ensures scope is before any awaits
1 parent 9f34637 commit cb23bb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plus/gk/account/subscriptionService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,10 @@ export class SubscriptionService implements Disposable {
681681

682682
@log()
683683
async upgrade(source: Source | undefined): Promise<void> {
684-
if (!(await ensurePlusFeaturesEnabled())) return;
685684
const scope = getLogScope();
686685

686+
if (!(await ensurePlusFeaturesEnabled())) return;
687+
687688
if (this.container.telemetry.enabled) {
688689
this.container.telemetry.sendEvent('subscription/action', { action: 'upgrade' }, source);
689690
}

0 commit comments

Comments
 (0)