Update Library/Homebrew/cask/audit.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
ed6d7ce995
commit
7b6c8329b1
@ -582,8 +582,11 @@ module Cask
|
|||||||
|
|
||||||
return if cask_min_os == min_os_string
|
return if cask_min_os == min_os_string
|
||||||
|
|
||||||
min_os_symbol = cask_min_os&.to_sym.inspect
|
min_os_symbol = if cask_min_os.present?
|
||||||
min_os_symbol = "no minimum OS version" if min_os_symbol == "nil"
|
cask_min_os.to_sym.inspect
|
||||||
|
else
|
||||||
|
"no minimum OS version"
|
||||||
|
end
|
||||||
add_error "Upstream defined #{min_os_string.to_sym.inspect} as the minimum OS version " \
|
add_error "Upstream defined #{min_os_string.to_sym.inspect} as the minimum OS version " \
|
||||||
"and the cask defined #{min_os_symbol}"
|
"and the cask defined #{min_os_symbol}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user