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:
commit
c882ee7803
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user