Change removal of credentials to adhere to no-vars-unused
This commit is contained in:
parent
7ff117d65d
commit
b7b85bb26f
1 changed files with 2 additions and 2 deletions
|
|
@ -885,8 +885,8 @@ export function parseRegistriesWithoutCredentials(
|
||||||
registriesInput?: string,
|
registriesInput?: string,
|
||||||
): RegistryConfigNoCredentials[] | undefined {
|
): RegistryConfigNoCredentials[] | undefined {
|
||||||
return parseRegistries(registriesInput)?.map((r) => {
|
return parseRegistries(registriesInput)?.map((r) => {
|
||||||
const { token: _, ...registryWithoutCredentials } = r;
|
const { url, packages } = r;
|
||||||
return registryWithoutCredentials;
|
return { url, packages };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue