diff --git a/Library/Homebrew/livecheck/strategy/sparkle.rb b/Library/Homebrew/livecheck/strategy/sparkle.rb index 3372008723..fa80a7a5f8 100644 --- a/Library/Homebrew/livecheck/strategy/sparkle.rb +++ b/Library/Homebrew/livecheck/strategy/sparkle.rb @@ -47,7 +47,7 @@ module Homebrew if enclosure match = if block - enclosure[:version] = Cask::DSL::Version.new(enclosure[:version].nice_version) + enclosure[:version] = enclosure[:version].nice_version block.call(enclosure).to_s else enclosure[:version].nice_version