From 72168a27eccc43f7a6e7444e66ccbdad0ab93e5c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 31 Mar 2024 05:11:04 -0400 Subject: [PATCH] Add default value for `args` parameter in subprocess() --- chrome/content/zotero/xpcom/utilities_internal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index 2e5d74e03f..ab32f87b3a 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -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);