Skip to content

Commit b8f102c

Browse files
LiviaMedeirosaduh95
authored andcommitted
fs: add trailing commas
PR-URL: #43127 Co-authored-by: Antoine du Hamel <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent 84b698d commit b8f102c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function writeSync(fd, buffer, offsetOrOptions, length, position) {
890890
({
891891
offset = 0,
892892
length = buffer.byteLength - offset,
893-
position = null
893+
position = null,
894894
} = offsetOrOptions ?? ObjectCreate(null));
895895
}
896896
if (position === undefined)

lib/internal/fs/promises.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
464464
buffer = Buffer.alloc(16384),
465465
offset = 0,
466466
length = buffer.byteLength - offset,
467-
position = null
467+
position = null,
468468
} = bufferOrParams ?? ObjectCreate(null));
469469

470470
validateBuffer(buffer);
@@ -475,7 +475,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
475475
({
476476
offset = 0,
477477
length = buffer.byteLength - offset,
478-
position = null
478+
position = null,
479479
} = offset);
480480
}
481481

@@ -527,7 +527,7 @@ async function write(handle, buffer, offsetOrOptions, length, position) {
527527
({
528528
offset = 0,
529529
length = buffer.byteLength - offset,
530-
position = null
530+
position = null,
531531
} = offsetOrOptions ?? ObjectCreate(null));
532532
}
533533

0 commit comments

Comments
 (0)