brew style --fix
This commit is contained in:
parent
0191af7899
commit
75179e9239
@ -13,7 +13,7 @@ module Cask
|
||||
source_string, target_hash = args
|
||||
|
||||
if target_hash
|
||||
raise CaskInvalidError.new(cask) unless target_hash.respond_to?(:keys)
|
||||
raise CaskInvalidError, cask unless target_hash.respond_to?(:keys)
|
||||
|
||||
target_hash.assert_valid_keys(:target)
|
||||
end
|
||||
|
@ -68,9 +68,9 @@ module Utils
|
||||
else
|
||||
bottle_json_path = Pathname(bottle_file.sub(/\.(\d+\.)?tar\.gz$/, ".json"))
|
||||
if bottle_json_path.exist? &&
|
||||
(bottle_json_path_contents = bottle_json_path.read.presence) &&
|
||||
(bottle_json = JSON.parse(bottle_json_path_contents).presence) &&
|
||||
bottle_json.is_a?(Hash)
|
||||
(bottle_json_path_contents = bottle_json_path.read.presence) &&
|
||||
(bottle_json = JSON.parse(bottle_json_path_contents).presence) &&
|
||||
bottle_json.is_a?(Hash)
|
||||
bottle_json.keys.first.presence
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user