@@ -136,7 +136,7 @@ module.exports = cls => class Reifier extends cls {
136
136
// this is currently technical debt which will be resolved in a refactor
137
137
// of Node/Link trees
138
138
log . warn ( 'reify' , 'The "linked" install strategy is EXPERIMENTAL and may contain bugs.' )
139
- this . idealTree = await this [ _createIsolatedTree ] ( this . idealTree )
139
+ this . idealTree = await this [ _createIsolatedTree ] ( )
140
140
}
141
141
await this [ _diffTrees ] ( )
142
142
await this [ _reifyPackages ] ( )
@@ -540,7 +540,7 @@ module.exports = cls => class Reifier extends cls {
540
540
. map ( ( [ from , to ] ) => this [ _renamePath ] ( to , from ) )
541
541
return promiseAllRejectLate ( movePromises )
542
542
// ignore subsequent rollback errors
543
- . catch ( er => { } )
543
+ . catch ( ( ) => { } )
544
544
. then ( timeEnd )
545
545
. then ( ( ) => {
546
546
throw er
@@ -608,7 +608,7 @@ module.exports = cls => class Reifier extends cls {
608
608
continue
609
609
}
610
610
dirsChecked . add ( d )
611
- const st = await lstat ( d ) . catch ( er => null )
611
+ const st = await lstat ( d ) . catch ( ( ) => null )
612
612
// this can happen if we have a link to a package with a name
613
613
// that the filesystem treats as if it is the same thing.
614
614
// would be nice to have conditional istanbul ignores here...
@@ -779,7 +779,7 @@ module.exports = cls => class Reifier extends cls {
779
779
return
780
780
}
781
781
await debug ( async ( ) => {
782
- const st = await lstat ( node . path ) . catch ( e => null )
782
+ const st = await lstat ( node . path ) . catch ( ( ) => null )
783
783
if ( st && ! st . isDirectory ( ) ) {
784
784
debug . log ( 'unpacking into a non-directory' , node )
785
785
throw Object . assign ( new Error ( 'ENOTDIR: not a directory' ) , {
@@ -815,7 +815,7 @@ module.exports = cls => class Reifier extends cls {
815
815
// if the node is optional, then the failure of the promise is nonfatal
816
816
// just add it and its optional set to the trash list.
817
817
[ _handleOptionalFailure ] ( node , p ) {
818
- return ( node . optional ? p . catch ( er => {
818
+ return ( node . optional ? p . catch ( ( ) => {
819
819
const set = optionalSet ( node )
820
820
for ( node of set ) {
821
821
log . verbose ( 'reify' , 'failed optional dependency' , node . path )
0 commit comments