Merge remote-tracking branch 'upstream/main' into rvermeulen/extend-init-complete-status-report
This commit is contained in:
commit
7c2bec0cc3
2390 changed files with 80665 additions and 3034 deletions
4
lib/util.js
generated
4
lib/util.js
generated
|
|
@ -399,7 +399,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
|
||||
|
|
@ -577,7 +577,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