Add default value for args parameter in subprocess()

This commit is contained in:
Dan Stillman 2024-03-31 05:11:04 -04:00
parent 5d150958de
commit 72168a27ec

View file

@ -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);