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