Have tap_git_head
return nil
when no tap is installed
This commit is contained in:
parent
3db7d01978
commit
c4dabb5527
@ -323,6 +323,8 @@ module Cask
|
||||
|
||||
def tap_git_head
|
||||
@tap_git_head ||= tap&.git_head
|
||||
rescue TapUnavailableError
|
||||
nil
|
||||
end
|
||||
|
||||
def populate_from_api!(json_cask)
|
||||
|
@ -2232,6 +2232,8 @@ class Formula
|
||||
|
||||
def tap_git_head
|
||||
tap&.git_head
|
||||
rescue TapUnavailableError
|
||||
nil
|
||||
end
|
||||
|
||||
delegate env: :"self.class"
|
||||
|
Loading…
x
Reference in New Issue
Block a user