Skip to content

Commit

Permalink
Fixed documentation for tr.exec() (#633)
Browse files Browse the repository at this point in the history
The previous code example had `tr.exec()` on line 8. However, it should be `atool.exec()`.
  • Loading branch information
found-it authored May 6, 2020
1 parent 44869ec commit 5f230a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/docs/samples/toolrunner.src
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import tr = require('azure-pipelines-task-lib/toolrunner');
try {
var toolPath = tl.which('atool');
var atool:tr.ToolRunner = tl.tool(toolPath).arg('--afile').line('arguments');
var code: number = await tr.exec();
var code: number = await atool.exec();
console.log('rc=' + code);
}
catch (err) {
tl.setResult(tl.TaskResult.Failed, err.message);
}
}

0 comments on commit 5f230a2

Please sign in to comment.