Skip to content

Commit

Permalink
chore(pass-style): Resolve eslint warnings (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 authored Nov 22, 2024
1 parent ff6a5ab commit 2687aa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/pass-style/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>}
* @returns {asserts arr is CopyArray<any>}
*/
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,
)}`;
};
Expand Down

0 comments on commit 2687aa0

Please sign in to comment.