Skip to content

Commit

Permalink
Simplify Tap#custom_remote?.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 4, 2024
1 parent d7d4c82 commit abc591e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,11 @@ def uninstall(manual: false)
end

# True if the {#remote} of {Tap} is customized.
sig { returns(T::Boolean) }
def custom_remote?
return true unless remote
return true unless (remote = self.remote)

remote.casecmp(default_remote).nonzero?
!remote.casecmp(default_remote).zero?
end

# Path to the directory of all {Formula} files for this {Tap}.
Expand Down

0 comments on commit abc591e

Please sign in to comment.