Skip to content
Snippets Groups Projects
Commit 5f7c4d97 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] ESLint error due to arrow function

parent c8ef0452
Branches
Tags
No related merge requests found
......@@ -113,14 +113,17 @@ module.exports = () => {
program
.command(cmd.command.name)
.description(cmd.command.desc)
.action((...args) => co(function*() {
.action(function() {
const args = Array.from(arguments);
return co(function*() {
try {
const res = yield cmd.executionCallback.apply(null, [program].concat(args));
onResolve(res);
} catch (e) {
onReject(e);
}
}));
});
});
}
program
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment