diff options
Diffstat (limited to 'lib/chef/node/immutable_collections.rb')
-rw-r--r-- | lib/chef/node/immutable_collections.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node/immutable_collections.rb b/lib/chef/node/immutable_collections.rb index b4a7a39ba0..b75fde39d5 100644 --- a/lib/chef/node/immutable_collections.rb +++ b/lib/chef/node/immutable_collections.rb @@ -82,7 +82,7 @@ class Chef end def to_a - Array.new(map do |v| + Array.new(map { |v| case v when ImmutableArray v.to_a @@ -91,7 +91,7 @@ class Chef else safe_dup(v) end - end) + }) end alias_method :to_array, :to_a |