Skip to content

Commit

Permalink
code clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
“Thavachelvam committed Dec 20, 2024
1 parent 1fe2668 commit fafecb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions common/lib/dependabot/config/update_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def ignored_versions_for(dependency, security_updates_only: false)
normalizer = name_normaliser_for(dependency)
dep_name = T.must(normalizer).call(dependency.name)

# When version is not set, trying to get the version from the base requirement.
if dependency.version.nil? && dependency.requirements.any?
requirements = dependency.requirements
requirement = T.must(requirements.first)[:requirement]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def initialize(dependency:, credentials:, dependency_files:,

def latest_version_from_registry
return unless valid_npm_details?
# @ignored_versions = [">= 2.a"] if package-lock.json is present or dependency version is present.
# Now @ignored_versions is an empty array
return version_from_dist_tags if version_from_dist_tags
return if specified_dist_tag_requirement?

Expand Down

0 comments on commit fafecb8

Please sign in to comment.