Skip to content

Commit

Permalink
Fix running a task when 'cwd' is not provided
Browse files Browse the repository at this point in the history
Removing a check that seems to be a leftover from previous change [2]

[1] eclipse-theia#8930
[2] eclipse-theia#5024 (comment)

Signed-off-by: Alvaro Sanchez-Leon <alvaro.sanchez-leon@ericsson.com>
  • Loading branch information
alvsan09 committed Jan 14, 2021
1 parent 1c84263 commit fdbce52
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/task/src/node/process/process-task-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ export class ProcessTaskRunner implements TaskRunner {
}

const options = systemSpecificCommand.options;
// sanity checks:
// - we expect the cwd to be set by the client.
if (!options || !options.cwd) {
throw new Error("Can't run a task when 'cwd' is not provided by the client");
}

// Use task's cwd with spawned process and pass node env object to
// new process, so e.g. we can re-use the system path
Expand Down

0 comments on commit fdbce52

Please sign in to comment.