Skip to content

Commit 64cedff

Browse files
committed
Removed unused try/catch error variable.
1 parent b7667d7 commit 64cedff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/doxdox-core/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 =>
124124
export 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> => {
140140
export 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
};

0 commit comments

Comments
 (0)