Updated livecheck_version

Co-authored-by: Nanda H Krishna <me@nandahkrishna.com>
This commit is contained in:
Mohammad Zain Abbas 2022-07-31 12:38:00 +05:00 committed by GitHub
parent 5beb7c1772
commit fe94bfb0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,7 @@ module Homebrew
}
def self.create(package_or_resource, version)
versions = case package_or_resource
when Resource
[version]
when Formula
when Formula, Resource
[version]
when Cask::Cask
version.to_s.split(/[,:]/).map { |s| Version.new(s) }