diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-08-28 14:13:07 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-08-28 15:03:12 -0700 |
commit | de7b8f9ea33dcd8b2554ba13bc1cd86c327547f4 (patch) | |
tree | adf48be0194a637df4e00f81b18497f6e8bd3585 | |
parent | 4ba94438788706ceae12706c539d5cda101fb89b (diff) | |
download | chef-de7b8f9ea33dcd8b2554ba13bc1cd86c327547f4.tar.gz |
node attributes: remove useless dup in merge_alllcg/backport-6356
since immutablize now does dup + freeze of everything this
is definitively unnecessary, and appears to have been
unnecessary even in Chef-12 (at last does not break any
specs there either).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/node/attribute.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb index 4febd47b44..c84b102e09 100644 --- a/lib/chef/node/attribute.rb +++ b/lib/chef/node/attribute.rb @@ -559,10 +559,6 @@ class Chef apply_path(@automatic, path), ] - components.map! do |component| - safe_dup(component) - end - return nil if components.compact.empty? components.inject(ImmutableMash.new({}, self, __node__, :merged)) do |merged, component| |