Skip to content

Commit

Permalink
Use Gem::Version instead of Dependabot::Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ByAgenT committed Mar 21, 2024
1 parent 33dd4cf commit 672ba3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go_modules/lib/dependabot/go_modules/requirement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Requirement < Dependabot::Requirement

# Use GoModules::Version rather than Gem::Version to ensure that
# pre-release versions aren't transformed.
sig { params(obj: T.untyped).returns([String, Dependabot::Version]) }
sig { params(obj: T.untyped).returns([String, Gem::Version]) }
def self.parse(obj)
return ["=", Version.new(obj.to_s)] if obj.is_a?(Gem::Version)

Expand Down

0 comments on commit 672ba3e

Please sign in to comment.