Remove on_macos
block
This commit is contained in:
parent
1ceaa2ebd3
commit
4d77e01273
@ -3018,12 +3018,10 @@ class Formula
|
|||||||
end
|
end
|
||||||
when :default_prefix
|
when :default_prefix
|
||||||
lambda do |_|
|
lambda do |_|
|
||||||
on_macos do
|
T.cast(self, PourBottleCheck).reason(+<<~EOS)
|
||||||
T.cast(self, PourBottleCheck).reason(+<<~EOS)
|
The bottle needs to be installed into #{Homebrew::DEFAULT_PREFIX}.
|
||||||
The bottle needs to be installed into #{Homebrew::DEFAULT_PREFIX}.
|
EOS
|
||||||
EOS
|
T.cast(self, PourBottleCheck).satisfy { HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX }
|
||||||
T.cast(self, PourBottleCheck).satisfy { HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
raise ArgumentError, "Invalid preset `pour_bottle?` condition" if only_if.present?
|
raise ArgumentError, "Invalid preset `pour_bottle?` condition" if only_if.present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user