Skip to content

Commit

Permalink
fs: add trailing commas
Browse files Browse the repository at this point in the history
PR-URL: #43127
Co-authored-by: Antoine du Hamel <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
  • Loading branch information
2 people authored and bengl committed May 30, 2022
1 parent 4e9393e commit 6f48dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ function writeSync(fd, buffer, offsetOrOptions, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offsetOrOptions ?? ObjectCreate(null));
}
if (position === undefined)
Expand Down
6 changes: 3 additions & 3 deletions lib/internal/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
buffer = Buffer.alloc(16384),
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = bufferOrParams ?? ObjectCreate(null));

validateBuffer(buffer);
Expand All @@ -527,7 +527,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offset);
}

Expand Down Expand Up @@ -579,7 +579,7 @@ async function write(handle, buffer, offsetOrOptions, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offsetOrOptions ?? ObjectCreate(null));
}

Expand Down

0 comments on commit 6f48dfb

Please sign in to comment.