summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2023-02-20 01:58:32 +0100
committerGitHub <noreply@github.com>2023-02-20 01:58:32 +0100
commit9f192530f200b545aba7c34399d015aab8eb1804 (patch)
treed293fe44e86c0421ac743bf61b4d9d7995bf9756 /lib/fs.js
parentd9a0a4a095c4d9eddaff766503e9d9b5facf2108 (diff)
downloadnode-new-9f192530f200b545aba7c34399d015aab8eb1804.tar.gz
fs: add trailing commas in source files
PR-URL: https://github.com/nodejs/node/pull/46696 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 847c43de75..be462fd820 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -53,7 +53,7 @@ const {
W_OK,
X_OK,
O_WRONLY,
- O_SYMLINK
+ O_SYMLINK,
} = constants;
const pathModule = require('path');
@@ -75,7 +75,7 @@ const {
},
AbortError,
uvErrmapGet,
- uvException
+ uvException,
} = require('internal/errors');
const { FSReqCallback } = binding;
@@ -122,7 +122,7 @@ const {
validateRmOptionsSync,
validateRmdirOptions,
validateStringAfterArrayBufferView,
- warnOnNonPortableTemplate
+ warnOnNonPortableTemplate,
} = require('internal/fs/utils');
const {
CHAR_FORWARD_SLASH,
@@ -978,7 +978,7 @@ function writev(fd, buffers, position, callback) {
ObjectDefineProperty(writev, kCustomPromisifyArgsSymbol, {
__proto__: null,
value: ['bytesWritten', 'buffer'],
- enumerable: false
+ enumerable: false,
});
/**
@@ -2404,7 +2404,7 @@ function watchFile(filename, options, listener) {
// behavioral changes to a minimum.
interval: 5007,
persistent: true,
- ...options
+ ...options,
};
validateFunction(listener, 'listener');
@@ -3122,7 +3122,7 @@ module.exports = fs = {
},
// For tests
- _toUnixTimestamp: toUnixTimestamp
+ _toUnixTimestamp: toUnixTimestamp,
};
defineLazyProperties(
@@ -3140,7 +3140,7 @@ ObjectDefineProperties(fs, {
__proto__: null,
configurable: false,
enumerable: true,
- value: constants
+ value: constants,
},
promises: {
__proto__: null,
@@ -3149,6 +3149,6 @@ ObjectDefineProperties(fs, {
get() {
promises ??= require('internal/fs/promises').exports;
return promises;
- }
- }
+ },
+ },
});