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 (
6565 if ( await fs . stat ( nodeModulesPath ) ) {
6666 return nodeModulesPath ;
6767 }
68- } catch ( _ ) {
68+ } catch {
6969 const parentDirectory = resolve ( currentDirectory , '..' ) ;
7070
7171 return await findParentNodeModules ( parentDirectory , -- maxDepth ) ;
@@ -124,7 +124,7 @@ export const getRootDirPath = (url?: string): string =>
124124export const isDirectory = async ( path : string ) : Promise < boolean > => {
125125 try {
126126 return ( await fs . stat ( path ) ) . isDirectory ( ) ;
127- } catch ( _ ) {
127+ } catch {
128128 return false ;
129129 }
130130} ;
@@ -140,7 +140,7 @@ export const isDirectory = async (path: string): Promise<boolean> => {
140140export const isFile = async ( path : string ) : Promise < boolean > => {
141141 try {
142142 return ( await fs . stat ( path ) ) . isFile ( ) ;
143- } catch ( _ ) {
143+ } catch {
144144 return false ;
145145 }
146146} ;
You can’t perform that action at this time.
0 commit comments