Skip to content

Commit b7b85bb

Browse files
committed
Change removal of credentials to adhere to no-vars-unused
1 parent 7ff117d commit b7b85bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,8 @@ export function parseRegistriesWithoutCredentials(
885885
registriesInput?: string,
886886
): RegistryConfigNoCredentials[] | undefined {
887887
return parseRegistries(registriesInput)?.map((r) => {
888-
const { token: _, ...registryWithoutCredentials } = r;
889-
return registryWithoutCredentials;
888+
const { url, packages } = r;
889+
return { url, packages };
890890
});
891891
}
892892

0 commit comments

Comments
 (0)