cask: return nil instead of "" if no caveats
This commit is contained in:
parent
605a9c6057
commit
a9b9d4613d
@ -147,7 +147,7 @@ module Cask
|
||||
"version" => version,
|
||||
"sha256" => sha256,
|
||||
"artifacts" => artifacts.map(&method(:to_h_gsubs)),
|
||||
"caveats" => to_h_string_gsubs(caveats),
|
||||
"caveats" => (to_h_string_gsubs(caveats) unless caveats.empty?),
|
||||
"depends_on" => depends_on,
|
||||
"conflicts_with" => conflicts_with,
|
||||
"container" => container,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user