diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 18:20:06 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 18:20:06 -0700 |
commit | 2da413fe65595e95b16e9e01afa240d5c668a03a (patch) | |
tree | aaa60ecf50befabe0c6a5444c593275e411873d5 /lib/chef/node/attribute_collections.rb | |
parent | 5f45c98f1e2ae9ec7b95760a41d617a7a698cc19 (diff) | |
download | chef-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.rb | 4 |
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 |