Skip to content

Commit

Permalink
Reuse comparable_version_from method
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Aug 11, 2023
1 parent d030c2b commit 7a1b9df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/lib/dependabot/docker/update_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ def version_tag_up_to_date?

latest_tag = latest_tag_from(version)

old_v = version_tag.numeric_version
latest_v = latest_tag.numeric_version

version_class.new(latest_v) <= version_class.new(old_v)
comparable_version_from(latest_tag) <= comparable_version_from(version_tag)
end

def digest_up_to_date?
Expand Down

0 comments on commit 7a1b9df

Please sign in to comment.