@@ -136,7 +136,7 @@ module.exports = cls => class Reifier extends cls {
136136 // this is currently technical debt which will be resolved in a refactor
137137 // of Node/Link trees
138138 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 ] ( )
140140 }
141141 await this [ _diffTrees ] ( )
142142 await this [ _reifyPackages ] ( )
@@ -540,7 +540,7 @@ module.exports = cls => class Reifier extends cls {
540540 . map ( ( [ from , to ] ) => this [ _renamePath ] ( to , from ) )
541541 return promiseAllRejectLate ( movePromises )
542542 // ignore subsequent rollback errors
543- . catch ( er => { } )
543+ . catch ( ( ) => { } )
544544 . then ( timeEnd )
545545 . then ( ( ) => {
546546 throw er
@@ -608,7 +608,7 @@ module.exports = cls => class Reifier extends cls {
608608 continue
609609 }
610610 dirsChecked . add ( d )
611- const st = await lstat ( d ) . catch ( er => null )
611+ const st = await lstat ( d ) . catch ( ( ) => null )
612612 // this can happen if we have a link to a package with a name
613613 // that the filesystem treats as if it is the same thing.
614614 // would be nice to have conditional istanbul ignores here...
@@ -779,7 +779,7 @@ module.exports = cls => class Reifier extends cls {
779779 return
780780 }
781781 await debug ( async ( ) => {
782- const st = await lstat ( node . path ) . catch ( e => null )
782+ const st = await lstat ( node . path ) . catch ( ( ) => null )
783783 if ( st && ! st . isDirectory ( ) ) {
784784 debug . log ( 'unpacking into a non-directory' , node )
785785 throw Object . assign ( new Error ( 'ENOTDIR: not a directory' ) , {
@@ -815,7 +815,7 @@ module.exports = cls => class Reifier extends cls {
815815 // if the node is optional, then the failure of the promise is nonfatal
816816 // just add it and its optional set to the trash list.
817817 [ _handleOptionalFailure ] ( node , p ) {
818- return ( node . optional ? p . catch ( er => {
818+ return ( node . optional ? p . catch ( ( ) => {
819819 const set = optionalSet ( node )
820820 for ( node of set ) {
821821 log . verbose ( 'reify' , 'failed optional dependency' , node . path )
0 commit comments