Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed May 20, 2023
1 parent 3a8a10d commit 89456e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/pass-style/src/copyBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export const makeCopyBytes = arrayBuffer => {
// Can't say it this way because it confuses TypeScript
// __proto__: ArrayBuffer.prototype,
byteLength: arrayBuffer.byteLength,
slice(start, end) { return sliceOf(arrayBuffer, start, end); },
slice(start, end) {
return sliceOf(arrayBuffer, start, end);
},
[Symbol.toStringTag]: 'CopyBytes',
};
setPrototypeOf(copyBytes, ArrayBuffer.prototype);
Expand Down
6 changes: 3 additions & 3 deletions packages/pass-style/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ harden(assertCopyArray);
const assertCopyBytes = (array, optNameOfArray = 'Alleged copyBytes') => {
const passStyle = passStyleOf(array);
passStyle === 'copyBytes' ||
Fail`${q(optNameOfArray)} ${array} must be a pass-by-copy binary data, not ${q(
passStyle,
)}`;
Fail`${q(
optNameOfArray,
)} ${array} must be a pass-by-copy binary data, not ${q(passStyle)}`;
};
harden(assertCopyBytes);

Expand Down

0 comments on commit 89456e0

Please sign in to comment.