Fix new linter errors
This commit is contained in:
parent
acb243eabd
commit
ecb9ccfcb1
33 changed files with 41 additions and 33 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue