From b37e574ad383c7ceb2385220e8bdf341258c75e4 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 8 Jul 2021 09:19:11 +0100 Subject: [PATCH] Fix `typecheck` error --- Library/Homebrew/extend/ENV/super.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 03af1e7b6a..7b91b1657d 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -339,7 +339,7 @@ module Superenv %w[O1 O0].each do |opt| define_method opt do |&block| - if block + if T.must(block) with_env(HOMEBREW_OPTIMIZATION_LEVEL: opt) { block.call } else send(:[]=, "HOMEBREW_OPTIMIZATION_LEVEL", opt)