From c03a7cdb45351a3dc2bc738491f32d31b8f3738e Mon Sep 17 00:00:00 2001 From: Kamil Bukum Date: Thu, 26 Dec 2024 13:35:09 -0800 Subject: [PATCH] fix maven elm language empty version issues --- elm/lib/dependabot/elm/language.rb | 2 +- maven/lib/dependabot/maven/language.rb | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/elm/lib/dependabot/elm/language.rb b/elm/lib/dependabot/elm/language.rb index 558db9e233..20ebc57ba3 100644 --- a/elm/lib/dependabot/elm/language.rb +++ b/elm/lib/dependabot/elm/language.rb @@ -16,7 +16,7 @@ class Language < Dependabot::Ecosystem::VersionManager def initialize(raw_version, requirement = nil) super( LANGUAGE, - Version.new(""), + nil, Version.new(raw_version), [], [], diff --git a/maven/lib/dependabot/maven/language.rb b/maven/lib/dependabot/maven/language.rb index 80ea31d274..a0f34dfe7b 100644 --- a/maven/lib/dependabot/maven/language.rb +++ b/maven/lib/dependabot/maven/language.rb @@ -13,20 +13,12 @@ module Maven class Language < Dependabot::Ecosystem::VersionManager extend T::Sig - sig do - params( - detected_version: String, - raw_version: String - ).void - end - def initialize( - detected_version, - raw_version - ) + sig { void } + def initialize super( LANGUAGE, - Version.new(detected_version), - Version.new(raw_version) + nil, + nil ) end end