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

4
lib/util.js generated
View file

@ -398,7 +398,7 @@ function parseGitHubUrl(inputUrl) {
try {
url = new URL(inputUrl);
}
catch (e) {
catch {
throw new ConfigurationError(`"${originalUrl}" is not a valid URL`);
}
// If we detect this is trying to be to github.com
@ -576,7 +576,7 @@ function doesDirectoryExist(dirPath) {
const stats = fs.lstatSync(dirPath);
return stats.isDirectory();
}
catch (e) {
catch {
return false;
}
}