Add default value for args
parameter in subprocess()
This commit is contained in:
parent
5d150958de
commit
72168a27ec
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ Zotero.Utilities.Internal = {
|
|||
* @param {String[]} args - An array of arguments to pass to the command
|
||||
* @return {String}
|
||||
*/
|
||||
subprocess: async function (command, args) {
|
||||
subprocess: async function (command, args = []) {
|
||||
// eslint-disable-next-line no-undef
|
||||
command = command.includes('/') ? command : await Subprocess.pathSearch(command);
|
||||
|
||||
|
|
Loading…
Reference in a new issue