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 Bryan English committed 2022-05-30 12:33:53 -04:00
1 parent 4e9393e32f
commit 6f48dfb499
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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);
@@ -527,7 +527,7 @@ async function read(handle, bufferOrParams, offset, length, position) {
({
offset = 0,
length = buffer.byteLength - offset,
position = null
position = null,
} = offset);
}
@@ -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));
}