Properly load booleans from the API

This commit is contained in:
Rylan Polster 2023-02-06 15:07:28 +01:00
parent 8edf681175
commit 48f4769155
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -334,8 +334,10 @@ module Cask
from_h_hash_gsubs(value)
elsif value.respond_to? :to_a
from_h_array_gsubs(value)
elsif value.is_a? String
from_h_string_gsubs(value)
else
{ "true" => true, "false" => false }.fetch(value, from_h_string_gsubs(value))
value
end
end
end