mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Simplify Tap#custom_remote?
.
This commit is contained in:
parent
d7d4c82662
commit
abc591e702
@ -523,10 +523,11 @@ class Tap
|
|||||||
end
|
end
|
||||||
|
|
||||||
# True if the {#remote} of {Tap} is customized.
|
# True if the {#remote} of {Tap} is customized.
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
def custom_remote?
|
def custom_remote?
|
||||||
return true unless remote
|
return true unless (remote = self.remote)
|
||||||
|
|
||||||
remote.casecmp(default_remote).nonzero?
|
!remote.casecmp(default_remote).zero?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Path to the directory of all {Formula} files for this {Tap}.
|
# Path to the directory of all {Formula} files for this {Tap}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user