Skip to content

Commit

Permalink
Remove extra level of async (#202)
Browse files Browse the repository at this point in the history
This prevents logging weirdness if the exec promise is rejected

Signed-off-by: Dan Rose <[email protected]>
  • Loading branch information
rotu authored May 8, 2020
1 parent 9c3b606 commit 242ffcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4880,9 +4880,9 @@ function execBashCommand(commandLine, commandPrefix, options, log_message) {
toolRunnerCommandLineArgs = ["-c", bashScript];
}
const runner = new tr.ToolRunner(toolRunnerCommandLine, toolRunnerCommandLineArgs, options);
return core.group(message, () => __awaiter(this, void 0, void 0, function* () {
return core.group(message, () => {
return runner.exec();
}));
});
});
}
exports.execBashCommand = execBashCommand;
Expand Down
2 changes: 1 addition & 1 deletion src/action-ros-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export async function execBashCommand(
toolRunnerCommandLineArgs,
options
);
return core.group(message, async () => {
return core.group(message, () => {
return runner.exec();
});
}
Expand Down

0 comments on commit 242ffcc

Please sign in to comment.