diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 5bad532b3b..7f957f5cae 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -1032,9 +1032,9 @@ class CoreTap < AbstractCoreTap super end - sig { returns(String) } + sig { returns(T.nilable(String)) } def remote - super if Homebrew::EnvConfig.no_install_from_api? + return super if Homebrew::EnvConfig.no_install_from_api? Homebrew::EnvConfig.core_git_remote end