From 2791f37a045962535c7b8691a942a7e739d75cad Mon Sep 17 00:00:00 2001 From: vsrs Date: Wed, 24 Jun 2020 11:50:14 +0300 Subject: Fix ts lints --- editors/code/src/tasks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code') diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index 20ddb3a5d..14abbd5b7 100644 --- a/editors/code/src/tasks.ts +++ b/editors/code/src/tasks.ts @@ -83,7 +83,7 @@ export async function buildCargoTask( const customExec = await vscode.commands.executeCommand(runnerCommand, runnerArgs); if (customExec) { if (customExec instanceof vscode.ShellExecution) { - exec = customExec as vscode.ShellExecution; + exec = customExec; } else { log.debug("Invalid cargo ShellExecution", customExec); throw "Invalid cargo ShellExecution."; @@ -98,7 +98,7 @@ export async function buildCargoTask( } if (!exec) { - exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition) + exec = new vscode.ShellExecution(toolchain.cargoPath(), args, definition); } return new vscode.Task( -- cgit v1.2.3