diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 9ea0bcca58..dce6e3e135 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -1036,9 +1036,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