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 1, 2024
1 parent f1eea64 commit d46b897
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit d46b897

Please sign in to comment.