Skip to content

Commit d30a19c

Browse files
committed
style: 💄 run pretteir
1 parent 1402df8 commit d30a19c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fsa-to-node/FsaNodeFs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ export class FsaNodeFs extends FsaNodeCore implements FsCallbackApi, FsSynchrono
9696
const src = await file.arrayBuffer();
9797
position = Number(position);
9898
length = Number(length);
99-
const slice = position > src.byteLength ? new Uint8Array(0) : new Uint8Array(src, position, Math.min(length, src.byteLength - position));
99+
const slice =
100+
position > src.byteLength
101+
? new Uint8Array(0)
102+
: new Uint8Array(src, position, Math.min(length, src.byteLength - position));
100103
const dest = new Uint8Array(buffer.buffer, buffer.byteOffset + offset, slice.length);
101104
dest.set(slice, 0);
102105
return slice.length;

0 commit comments

Comments
 (0)