resource_auditor: use if instead of unless
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
f69f9be233
commit
5191199957
@ -127,7 +127,7 @@ module Homebrew
|
||||
def audit_head_branch
|
||||
return unless @online
|
||||
return unless @strict
|
||||
return unless spec_name == :head
|
||||
return if spec_name != :head
|
||||
return unless Utils::Git.remote_exists?(url)
|
||||
|
||||
branch = Utils.popen_read("git", "ls-remote", "--symref", url, "HEAD")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user