Merge pull request #12509 from boblail/lail/resolve-NoMethodError-when-tap-is-nil

Bypass searching for open Issues when failing to install a formula without a tap
This commit is contained in:
Mike McQuaid 2021-12-03 13:00:18 +00:00 committed by GitHub
commit c882ee7803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,9 @@ module GitHub
end
end
def issues_for_formula(name, tap: CoreTap.instance, tap_remote_repo: tap.full_name, state: nil)
def issues_for_formula(name, tap: CoreTap.instance, tap_remote_repo: tap&.full_name, state: nil)
return [] unless tap_remote_repo
search_issues(name, repo: tap_remote_repo, state: state, in: "title")
end