fs: add trailing commas

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
LiviaMedeirosandAntoine du Hamel authored and Michaël Zasso committed 2022-07-31 09:44:41 +02:00
1 parent 464830993e
commit b0d9915bc6
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -890,7 +890,7 @@ function writeSync(fd, buffer, offsetOrOptions, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offsetOrOptions ?? ObjectCreate(null));
}
if (position === undefined)
+3 -3
View File
@@ -464,7 +464,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);
@@ -475,7 +475,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offset ?? ObjectCreate(null));
}
@@ -527,7 +527,7 @@ async function write(handle, buffer, offsetOrOptions, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offsetOrOptions ?? ObjectCreate(null));
}