diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 5bad532b3bffde..04819a77a336f2 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -516,10 +516,9 @@ def uninstall(manual: false) end # True if the {#remote} of {Tap} is customized. + sig { returns(T::Boolean) } def custom_remote? - return true unless remote - - remote.casecmp(default_remote).nonzero? + !remote&.casecmp(default_remote)&.zero? end # Path to the directory of all {Formula} files for this {Tap}.