Skip to content

Commit fe027da

Browse files
LiviaMedeirosaduh95
andcommitted
fs: add trailing commas
PR-URL: #43127 Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
1 parent 895cc57 commit fe027da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ function writeSync(fd, buffer, offsetOrOptions, length, position) {
897897
({
898898
offset = 0,
899899
length = buffer.byteLength - offset,
900-
position = null
900+
position = null,
901901
} = offsetOrOptions ?? ObjectCreate(null));
902902
}
903903
if (position === undefined)

lib/internal/fs/promises.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
516516
buffer = Buffer.alloc(16384),
517517
offset = 0,
518518
length = buffer.byteLength - offset,
519-
position = null
519+
position = null,
520520
} = bufferOrParams ?? ObjectCreate(null));
521521

522522
validateBuffer(buffer);
@@ -527,7 +527,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
527527
({
528528
offset = 0,
529529
length = buffer.byteLength - offset,
530-
position = null
530+
position = null,
531531
} = offset);
532532
}
533533

@@ -579,7 +579,7 @@ async function write(handle, buffer, offsetOrOptions, length, position) {
579579
({
580580
offset = 0,
581581
length = buffer.byteLength - offset,
582-
position = null
582+
position = null,
583583
} = offsetOrOptions ?? ObjectCreate(null));
584584
}
585585

0 commit comments

Comments
 (0)