resource_auditor: use if instead of unless

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Nanda H Krishna 2021-08-12 19:28:06 +05:30 committed by GitHub
parent f69f9be233
commit 5191199957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")