refactor: catch doesn't need to have a param (no-changelog) (#5614)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-03 18:18:49 +01:00
committed by GitHub
parent 9420b0fdf8
commit 4e244937c9
20 changed files with 59 additions and 59 deletions

View File

@@ -217,7 +217,7 @@ export class LoadNodesAndCredentials implements INodesAndCredentials {
const removeCommand = `npm remove ${packageName}`;
try {
await executeCommand(removeCommand);
} catch (_) {}
} catch {}
throw new Error(RESPONSE_ERROR_MESSAGES.PACKAGE_DOES_NOT_CONTAIN_NODES);
}
@@ -284,7 +284,7 @@ export class LoadNodesAndCredentials implements INodesAndCredentials {
const removeCommand = `npm remove ${packageName}`;
try {
await executeCommand(removeCommand);
} catch (_) {}
} catch {}
throw new Error(RESPONSE_ERROR_MESSAGES.PACKAGE_DOES_NOT_CONTAIN_NODES);
}
}
@@ -418,7 +418,7 @@ export class LoadNodesAndCredentials implements INodesAndCredentials {
await fsAccess(checkPath);
// Folder exists, so use it.
return path.dirname(checkPath);
} catch (_) {} // Folder does not exist so get next one
} catch {} // Folder does not exist so get next one
}
throw new Error('Could not find "node_modules" folder!');
}