diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2023-02-20 01:58:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 01:58:32 +0100 |
commit | 9f192530f200b545aba7c34399d015aab8eb1804 (patch) | |
tree | d293fe44e86c0421ac743bf61b4d9d7995bf9756 /lib/fs.js | |
parent | d9a0a4a095c4d9eddaff766503e9d9b5facf2108 (diff) | |
download | node-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.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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; - } - } + }, + }, }); |