lib/bolt/result.rb in bolt-2.1.0 vs lib/bolt/result.rb in bolt-2.2.0
- old
+ new
@@ -76,10 +76,10 @@
raise "Result shouldn't be instantiated from a pcore_init class method. How did this get called?"
end
def _pcore_init_from_hash(init_hash)
opts = init_hash.reject { |k, _v| k == 'target' }
- initialize(init_hash['target'], opts.map { |k, v| [k.to_sym, v] }.to_h)
+ initialize(init_hash['target'], opts.transform_keys(&:to_sym))
end
def _pcore_init_hash
{ 'target' => @target,
'error' => @value['_error'],