summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-07-05 09:21:40 -0700
committerRich Trott <rtrott@gmail.com>2017-07-07 13:18:19 -0700
commit0d22858d67f5f8f7959a55ceca23adafe12827d5 (patch)
tree9a0ff22b8b20243a59cf5ba6fed1f4eeb3755a7f /lib/fs.js
parent49d13a17b10b45b3d23e0fed41783769124f239c (diff)
downloadnode-new-0d22858d67f5f8f7959a55ceca23adafe12827d5.tar.gz
lib: remove excess indentation
In anticipation of stricter linting for indentation, remove instances of extra indentation that will be flagged by the new rules. PR-URL: https://github.com/nodejs/node/pull/14090 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js31
1 files changed, 16 insertions, 15 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 5bbd9f4946..91489f8166 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -172,20 +172,21 @@ function isFd(path) {
// Constructor for file stats.
function Stats(
- dev,
- mode,
- nlink,
- uid,
- gid,
- rdev,
- blksize,
- ino,
- size,
- blocks,
- atim_msec,
- mtim_msec,
- ctim_msec,
- birthtim_msec) {
+ dev,
+ mode,
+ nlink,
+ uid,
+ gid,
+ rdev,
+ blksize,
+ ino,
+ size,
+ blocks,
+ atim_msec,
+ mtim_msec,
+ ctim_msec,
+ birthtim_msec
+) {
this.dev = dev;
this.mode = mode;
this.nlink = nlink;
@@ -1285,7 +1286,7 @@ fs.writeFile = function(path, data, options, callback) {
function writeFd(fd, isUserFd) {
var buffer = isUint8Array(data) ?
- data : Buffer.from('' + data, options.encoding || 'utf8');
+ data : Buffer.from('' + data, options.encoding || 'utf8');
var position = /a/.test(flag) ? null : 0;
writeAll(fd, isUserFd, buffer, 0, buffer.length, position, callback);