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 976e997
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,7 @@ def uninstall(manual: false)

# True if the {#remote} of {Tap} is customized.
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 976e997

Please sign in to comment.