From 2687aa0d40e2dd314ae7f223ffccce98f2fcd82a Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 21 Nov 2024 22:17:59 -0500 Subject: [PATCH] chore(pass-style): Resolve eslint warnings (#2647) --- packages/pass-style/src/typeGuards.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/pass-style/src/typeGuards.js b/packages/pass-style/src/typeGuards.js index facff7b81a..1143a62296 100644 --- a/packages/pass-style/src/typeGuards.js +++ b/packages/pass-style/src/typeGuards.js @@ -33,14 +33,14 @@ const isRemotable = remotable => passStyleOf(remotable) === 'remotable'; harden(isRemotable); /** - * @param {any} array + * @param {any} arr * @param {string=} optNameOfArray - * @returns {asserts array is CopyArray} + * @returns {asserts arr is CopyArray} */ -const assertCopyArray = (array, optNameOfArray = 'Alleged array') => { - const passStyle = passStyleOf(array); +const assertCopyArray = (arr, optNameOfArray = 'Alleged array') => { + const passStyle = passStyleOf(arr); passStyle === 'copyArray' || - Fail`${q(optNameOfArray)} ${array} must be a pass-by-copy array, not ${q( + Fail`${q(optNameOfArray)} ${arr} must be a pass-by-copy array, not ${q( passStyle, )}`; };