Skip to content

Commit

Permalink
Change removal of credentials to adhere to no-vars-unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco Vermeulen committed Jul 31, 2024
1 parent 7ff117d commit b7b85bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ export function parseRegistriesWithoutCredentials(
registriesInput?: string,
): RegistryConfigNoCredentials[] | undefined {
return parseRegistries(registriesInput)?.map((r) => {
const { token: _, ...registryWithoutCredentials } = r;
return registryWithoutCredentials;
const { url, packages } = r;
return { url, packages };
});
}

Expand Down

0 comments on commit b7b85bb

Please sign in to comment.