summaryrefslogtreecommitdiff
path: root/lib/chef/node/attribute_collections.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 18:20:06 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 18:20:06 -0700
commit2da413fe65595e95b16e9e01afa240d5c668a03a (patch)
treeaaa60ecf50befabe0c6a5444c593275e411873d5 /lib/chef/node/attribute_collections.rb
parent5f45c98f1e2ae9ec7b95760a41d617a7a698cc19 (diff)
downloadchef-2da413fe65595e95b16e9e01afa240d5c668a03a.tar.gz
fix Style/MutableConstant
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node/attribute_collections.rb')
-rw-r--r--lib/chef/node/attribute_collections.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node/attribute_collections.rb b/lib/chef/node/attribute_collections.rb
index 2836473b1d..f62eceb646 100644
--- a/lib/chef/node/attribute_collections.rb
+++ b/lib/chef/node/attribute_collections.rb
@@ -55,7 +55,7 @@ class Chef
:sort_by!,
:uniq!,
:unshift,
- ]
+ ].freeze
# For all of the methods that may mutate an Array, we override them to
# also invalidate the cached merged_attributes on the root
@@ -140,7 +140,7 @@ class Chef
:replace,
:select!,
:shift,
- ]
+ ].freeze
# For all of the mutating methods on Mash, override them so that they
# also invalidate the cached `merged_attributes` on the root Attribute