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
|
def tap_git_head
|
||||||
@tap_git_head ||= tap&.git_head
|
@tap_git_head ||= tap&.git_head
|
||||||
|
rescue TapUnavailableError
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def populate_from_api!(json_cask)
|
def populate_from_api!(json_cask)
|
||||||
|
@ -2232,6 +2232,8 @@ class Formula
|
|||||||
|
|
||||||
def tap_git_head
|
def tap_git_head
|
||||||
tap&.git_head
|
tap&.git_head
|
||||||
|
rescue TapUnavailableError
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
delegate env: :"self.class"
|
delegate env: :"self.class"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user