Skip to content

Commit c0a3e9c

Browse files
committed
Kill mutant
1 parent 99ff0c8 commit c0a3e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby_event_store/lib/ruby_event_store/mappers/transformation/preserve_types.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def restore_type(argument, type)
143143
case type
144144
when Hash
145145
argument.reduce({}) do |hash, (key, value)|
146-
key_type, value_type = type.fetch(key.to_sym) { type.fetch(key.to_s) }
146+
key_type, value_type = type.fetch(key.to_sym) { type.fetch(key) }
147147
hash.merge(restore_type(key, key_type) => restore_type(value, value_type))
148148
end
149149
when Array

0 commit comments

Comments
 (0)