File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const findParentNodeModules = async (
65
65
if ( await fs . stat ( nodeModulesPath ) ) {
66
66
return nodeModulesPath ;
67
67
}
68
- } catch ( _ ) {
68
+ } catch {
69
69
const parentDirectory = resolve ( currentDirectory , '..' ) ;
70
70
71
71
return await findParentNodeModules ( parentDirectory , -- maxDepth ) ;
@@ -124,7 +124,7 @@ export const getRootDirPath = (url?: string): string =>
124
124
export const isDirectory = async ( path : string ) : Promise < boolean > => {
125
125
try {
126
126
return ( await fs . stat ( path ) ) . isDirectory ( ) ;
127
- } catch ( _ ) {
127
+ } catch {
128
128
return false ;
129
129
}
130
130
} ;
@@ -140,7 +140,7 @@ export const isDirectory = async (path: string): Promise<boolean> => {
140
140
export const isFile = async ( path : string ) : Promise < boolean > => {
141
141
try {
142
142
return ( await fs . stat ( path ) ) . isFile ( ) ;
143
- } catch ( _ ) {
143
+ } catch {
144
144
return false ;
145
145
}
146
146
} ;
You can’t perform that action at this time.
0 commit comments