Fix new linter errors
This commit is contained in:
parent
acb243eabd
commit
ecb9ccfcb1
33 changed files with 41 additions and 33 deletions
4
lib/config-utils.js
generated
4
lib/config-utils.js
generated
|
|
@ -419,7 +419,7 @@ function parsePacksSpecification(packStr) {
|
|||
try {
|
||||
new semver.Range(version);
|
||||
}
|
||||
catch (e) {
|
||||
catch {
|
||||
// The range string is invalid. OK to ignore the caught error
|
||||
throw new util_1.ConfigurationError(getPacksStrInvalid(packStr));
|
||||
}
|
||||
|
|
@ -503,7 +503,7 @@ function parseRegistries(registriesInput) {
|
|||
? yaml.load(registriesInput)
|
||||
: undefined;
|
||||
}
|
||||
catch (e) {
|
||||
catch {
|
||||
throw new util_1.ConfigurationError("Invalid registries input. Must be a YAML string.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue