Skip to content

Commit cce59a6

Browse files
authored
refactor: cleanup importers handling in _get_npm_imports
1 parent 971a880 commit cce59a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

npm/private/npm_translate_lock_helpers.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ ERROR: can not apply both `pnpm.patchedDependencies` and `npm_translate_lock(pat
405405

406406
# gather all of the importers (workspace packages) that this npm package should be linked at which names
407407
link_packages = {}
408-
for import_path, links in importer_links.items():
408+
for links in importer_links.values():
409409
linked_packages = links["packages"]
410-
link_names = linked_packages.get(package_key, [])
410+
link_names = linked_packages.get(package_key)
411411
if link_names:
412412
link_packages[links["link_package"]] = link_names
413413

0 commit comments

Comments
 (0)