From b15db833f4dbb71571324e092f45202295e8db12 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Tue, 17 Oct 2023 13:38:23 +0200 Subject: [PATCH] Remove redundant provided parameter internally --- src/unix.js | 2 +- src/win.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix.js b/src/unix.js index 93c770274..3403172ef 100644 --- a/src/unix.js +++ b/src/unix.js @@ -150,5 +150,5 @@ export function getShellName({ env, shell }, { resolveExecutable }) { * @returns {boolean} `true` if the shell is supported, `false` otherwise. */ export function isShellSupported(shellName) { - return getEscapeFunction(shellName, {}) !== undefined; + return getEscapeFunction(shellName) !== undefined; } diff --git a/src/win.js b/src/win.js index ee3a4396d..2a16d9845 100644 --- a/src/win.js +++ b/src/win.js @@ -133,5 +133,5 @@ export function getShellName({ env, shell }, { resolveExecutable }) { * @returns {boolean} `true` if the shell is supported, `false` otherwise. */ export function isShellSupported(shellName) { - return getEscapeFunction(shellName, {}) !== undefined; + return getEscapeFunction(shellName) !== undefined; }