diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 16:25:17 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 16:25:17 -0700 |
commit | 2833651dcf54db5ba8e92746b479ebafa897b275 (patch) | |
tree | 6f0019d53d96259fb9c02372943920b550da22c0 /lib/chef/node | |
parent | 866dd363f6fa8e7e8e3bacd55f4ba02a67dd240e (diff) | |
download | chef-2833651dcf54db5ba8e92746b479ebafa897b275.tar.gz |
fix more Style/SymbolArray autocorrect bugs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node')
-rw-r--r-- | lib/chef/node/mixin/immutablize_array.rb | 6 | ||||
-rw-r--r-- | lib/chef/node/mixin/immutablize_hash.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/node/mixin/immutablize_array.rb b/lib/chef/node/mixin/immutablize_array.rb index 2788f5635e..e9cbb2142a 100644 --- a/lib/chef/node/mixin/immutablize_array.rb +++ b/lib/chef/node/mixin/immutablize_array.rb @@ -1,5 +1,5 @@ #-- -# Copyright:: Copyright 2016-2018, Chef Software Inc. +# Copyright:: Copyright 2016-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,7 +26,7 @@ class Chef * + - - \[\] + [] abbrev all? any? @@ -131,7 +131,7 @@ class Chef # immutable. DISALLOWED_MUTATOR_METHODS = %i{ << - \[\]= + []= append clear collect! diff --git a/lib/chef/node/mixin/immutablize_hash.rb b/lib/chef/node/mixin/immutablize_hash.rb index 2cf65d2b2e..8c0d1c9509 100644 --- a/lib/chef/node/mixin/immutablize_hash.rb +++ b/lib/chef/node/mixin/immutablize_hash.rb @@ -1,5 +1,5 @@ #-- -# Copyright:: Copyright 2016-2018, Chef Software Inc. +# Copyright:: Copyright 2016-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,7 +26,7 @@ class Chef <= > >= - \[\] + [] all? any? assoc @@ -125,7 +125,7 @@ class Chef zip }.freeze DISALLOWED_MUTATOR_METHODS = %i{ - \[\]= + []= clear collect! compact! |