Skip to content

Commit

Permalink
refactor: remove unreachable code (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard authored Apr 19, 2024
1 parent 15aede8 commit 6ddc6bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions npm/private/utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def _convert_pnpm_v6_package_name(package_name):
# Covert a pnpm lock file v6 name/version string of the format
# @scope/name@version(@scope/name@version)(@scope/name@version)
# to a @scope/name/version_peer_version that is compatible with rules_js.
if package_name[0].isdigit():
return _convert_pnpm_v6_version_peer_dep(package_name)
elif package_name.startswith("/"):
if package_name.startswith("/"):
package_name = _convert_pnpm_v6_version_peer_dep(package_name)
segments = package_name.rsplit("@", 1)
if len(segments) != 2:
Expand Down

0 comments on commit 6ddc6bd

Please sign in to comment.