@@ -113,7 +113,7 @@ Writer.prototype._create = function () {
113
113
fs [ self . props . follow ? 'stat' : 'lstat' ] ( self . _path , function ( er ) {
114
114
if ( er ) {
115
115
return self . warn ( 'Cannot create ' + self . _path + '\n' +
116
- 'Unsupported type: ' + self . type , 'ENOTSUP' )
116
+ 'Unsupported type: ' + self . type , 'ENOTSUP' )
117
117
}
118
118
self . _finish ( )
119
119
} )
@@ -179,7 +179,7 @@ function create (self) {
179
179
function endChmod ( self , want , current , path , cb ) {
180
180
var wantMode = want . mode
181
181
var chmod = want . follow || self . type !== 'SymbolicLink'
182
- ? 'chmod' : 'lchmod'
182
+ ? 'chmod' : 'lchmod'
183
183
184
184
if ( ! fs [ chmod ] ) return cb ( )
185
185
if ( typeof wantMode !== 'number' ) return cb ( )
@@ -196,13 +196,13 @@ function endChown (self, want, current, path, cb) {
196
196
if ( process . platform === 'win32' ) return cb ( )
197
197
if ( ! process . getuid || process . getuid ( ) !== 0 ) return cb ( )
198
198
if ( typeof want . uid !== 'number' &&
199
- typeof want . gid !== 'number' ) return cb ( )
199
+ typeof want . gid !== 'number' ) return cb ( )
200
200
201
201
if ( current . uid === want . uid &&
202
- current . gid === want . gid ) return cb ( )
202
+ current . gid === want . gid ) return cb ( )
203
203
204
204
var chown = ( self . props . follow || self . type !== 'SymbolicLink' )
205
- ? 'chown' : 'lchown'
205
+ ? 'chown' : 'lchown'
206
206
if ( ! fs [ chown ] ) return cb ( )
207
207
208
208
if ( typeof want . uid !== 'number' ) want . uid = current . uid
@@ -215,7 +215,7 @@ function endUtimes (self, want, current, path, cb) {
215
215
if ( ! fs . utimes || process . platform === 'win32' ) return cb ( )
216
216
217
217
var utimes = ( want . follow || self . type !== 'SymbolicLink' )
218
- ? 'utimes' : 'lutimes'
218
+ ? 'utimes' : 'lutimes'
219
219
220
220
if ( utimes === 'lutimes' && ! fs [ utimes ] ) {
221
221
utimes = 'utimes'
@@ -235,7 +235,7 @@ function endUtimes (self, want, current, path, cb) {
235
235
if ( ! isDate ( meM ) ) meA = new Date ( meM )
236
236
237
237
if ( meA . getTime ( ) === curA . getTime ( ) &&
238
- meM . getTime ( ) === curM . getTime ( ) ) return cb ( )
238
+ meM . getTime ( ) === curM . getTime ( ) ) return cb ( )
239
239
240
240
fs [ utimes ] ( path , meA , meM , cb )
241
241
}
@@ -274,8 +274,8 @@ Writer.prototype._finish = function () {
274
274
// doesn't exist yet (especially if it was intended as a symlink),
275
275
// so swallow ENOENT errors here and just soldier on.
276
276
if ( er . code === 'ENOENT' &&
277
- ( self . type === 'Link' || self . type === 'SymbolicLink' ) &&
278
- process . platform === 'win32' ) {
277
+ ( self . type === 'Link' || self . type === 'SymbolicLink' ) &&
278
+ process . platform === 'win32' ) {
279
279
self . ready = true
280
280
self . emit ( 'ready' )
281
281
self . emit ( 'end' )
0 commit comments