SoftwareSpec: compact array that may contain nil
This commit is contained in:
parent
492ce9cc5e
commit
a9823bc518
@ -125,7 +125,7 @@ class Bottle < SoftwareSpec
|
||||
checksum_os_versions = send checksum_type
|
||||
next unless checksum_os_versions
|
||||
os_versions = checksum_os_versions.keys
|
||||
os_versions.map! {|osx| MacOS::Version.from_symbol osx rescue nil }
|
||||
os_versions.map! {|osx| MacOS::Version.from_symbol osx rescue nil }.compact!
|
||||
os_versions.sort.reverse.each do |os_version|
|
||||
osx = os_version.to_sym
|
||||
checksum = checksum_os_versions[osx]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user