Merge remote-tracking branch 'upstream/main' into rvermeulen/extend-init-complete-status-report

This commit is contained in:
Remco Vermeulen 2024-08-06 09:11:17 -07:00
commit 7c2bec0cc3
2390 changed files with 80665 additions and 3034 deletions

4
lib/util.js generated
View file

@ -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;
}
}