Skip to content

Commit

Permalink
refactor(npm): replace truthy value in set with True
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Oct 18, 2024
1 parent 7d20158 commit ac49601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions npm/private/npm_translate_lock_generate.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ sh_binary(
if not dep_key in fp_links.keys():
msg = "Expected to file: referenced package {} in first-party links".format(dep_key)
fail(msg)
fp_links[dep_key]["link_packages"][link_package] = []
fp_links[dep_key]["link_packages"][link_package] = True
elif dep_version.startswith("link:"):
dep_version = dep_version[len("link:"):]
dep_importer = paths.normalize("{}/{}".format(import_path, dep_version) if import_path else dep_version)
dep_path = helpers.link_package(root_package, import_path, dep_version)
dep_key = "{}+{}".format(dep_package, dep_path)
if dep_key in fp_links.keys():
fp_links[dep_key]["link_packages"][link_package] = []
fp_links[dep_key]["link_packages"][link_package] = True
else:
transitive_deps = {}
raw_deps = {}
Expand All @@ -199,7 +199,7 @@ sh_binary(
fp_links[dep_key] = {
"package": dep_package,
"path": dep_path,
"link_packages": {link_package: []},
"link_packages": {link_package: True},
"deps": transitive_deps,
}

Expand Down

0 comments on commit ac49601

Please sign in to comment.