mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
assign args in argument passing code
minor syntax change Original commit: elastic/kibana-plugin-helpers@ce77d071d1
This commit is contained in:
parent
beb4b33f62
commit
01a8fcee35
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ module.exports = function run(name) {
|
|||
// call the action function with the plugin, then all
|
||||
// renaining arguments from commander
|
||||
var plugin = pluginConfig();
|
||||
action.apply(null, [plugin, run].concat([].slice.apply(arguments)));
|
||||
var args = [].slice.apply(arguments);
|
||||
|
||||
action.apply(null, [plugin, run].concat(args));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue