mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -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
4e9393e32f
commit
6f48dfb499
2 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user