mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
464830993e
commit
b0d9915bc6
2 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user