Fix typecheck error

This commit is contained in:
Carlo Cabrera 2021-07-08 09:19:11 +01:00
parent b0b521001e
commit b37e574ad3
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -339,7 +339,7 @@ module Superenv
%w[O1 O0].each do |opt| %w[O1 O0].each do |opt|
define_method opt do |&block| define_method opt do |&block|
if block if T.must(block)
with_env(HOMEBREW_OPTIMIZATION_LEVEL: opt) { block.call } with_env(HOMEBREW_OPTIMIZATION_LEVEL: opt) { block.call }
else else
send(:[]=, "HOMEBREW_OPTIMIZATION_LEVEL", opt) send(:[]=, "HOMEBREW_OPTIMIZATION_LEVEL", opt)