Skip to content

Commit 9ef1e9e

Browse files
TimmmmTim Hutt
authored andcommitted
Remove unnecessary null check
1 parent a781a58 commit 9ef1e9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

editors/code/src/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ export async function activate(context: vscode.ExtensionContext) {
9393
ctx.registerCommand('applySourceChange', commands.applySourceChange);
9494
ctx.registerCommand('selectAndApplySourceChange', commands.selectAndApplySourceChange);
9595

96-
if (workspaceFolder !== null) {
97-
ctx.pushCleanup(activateTaskProvider(workspaceFolder));
98-
}
96+
ctx.pushCleanup(activateTaskProvider(workspaceFolder));
9997

10098
activateStatusDisplay(ctx);
10199

0 commit comments

Comments
 (0)