Remove on_macos block

This commit is contained in:
Carlo Cabrera 2021-07-20 09:07:09 +08:00
parent 1ceaa2ebd3
commit 4d77e01273
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -3018,12 +3018,10 @@ class Formula
end
when :default_prefix
lambda do |_|
on_macos do
T.cast(self, PourBottleCheck).reason(+<<~EOS)
The bottle needs to be installed into #{Homebrew::DEFAULT_PREFIX}.
EOS
T.cast(self, PourBottleCheck).satisfy { HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX }
end
T.cast(self, PourBottleCheck).reason(+<<~EOS)
The bottle needs to be installed into #{Homebrew::DEFAULT_PREFIX}.
EOS
T.cast(self, PourBottleCheck).satisfy { HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX }
end
else
raise ArgumentError, "Invalid preset `pour_bottle?` condition" if only_if.present?