Fix new linter errors

This commit is contained in:
Henry Mercer
2024-08-05 19:22:26 +01:00
parent acb243eabd
commit ecb9ccfcb1
33 changed files with 41 additions and 33 deletions

View File

@@ -516,7 +516,7 @@ export function parseGitHubUrl(inputUrl: string): string {
let url: URL;
try {
url = new URL(inputUrl);
} catch (e) {
} catch {
throw new ConfigurationError(`"${originalUrl}" is not a valid URL`);
}
@@ -753,7 +753,7 @@ export function doesDirectoryExist(dirPath: string): boolean {
try {
const stats = fs.lstatSync(dirPath);
return stats.isDirectory();
} catch (e) {
} catch {
return false;
}
}