Skip to content

Commit

Permalink
Prettier upgrade fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnaya committed May 14, 2024
1 parent 4628647 commit 3d36966
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
trailingComma: "es5"
}
4 changes: 2 additions & 2 deletions src/internal/TransactionalAllocator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class TransactionalAllocator implements FunctionalAllocatorWrapper {
optsOrState.end !== undefined
? optsOrState.end
: optsOrState.size !== undefined
? optsOrState.size
: 0x1000;
? optsOrState.size
: 0x1000;

this.allocatorState = allocatorInit(
{
Expand Down
4 changes: 2 additions & 2 deletions src/internal/arraySplice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function calculateSpliceStart(arrayLength: number, startArg: number) {
return startArg >= arrayLength
? arrayLength
: startArg < 0
? arrayLength + startArg
: startArg;
? arrayLength + startArg
: startArg;
}

function calculateDeleteCount(
Expand Down
4 changes: 1 addition & 3 deletions src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ export function isSupportedTopLevelValue(value: unknown) {
value instanceof Map ||
value instanceof Set ||
typeof value !== "object" ||
typeof value === null ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
value!.constructor.name !== "Object"
value?.constructor.name !== "Object"
);
}

0 comments on commit 3d36966

Please sign in to comment.