Merge pull request #13680 from Rylan12/fix-arch-dsl

Fix `nil` handling in `arch` cask DSL
This commit is contained in:
Rylan Polster 2022-08-10 17:49:13 -04:00 committed by GitHub
commit 3748bed378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ module OnSystem
end
end
base.define_method(:on_arch_conditional) do |arm:, intel:|
base.define_method(:on_arch_conditional) do |arm: nil, intel: nil|
@on_system_blocks_exist = true
return arm if OnSystem.arch_condition_met? :arm