diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-01-15 13:07:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-01-15 13:07:58 -0800 |
commit | 990974ca5cd44df0c77bb6a12fc57a3c32b92e23 (patch) | |
tree | 5779719f58254764e57eb9cacde85837295fd2f6 /lib/chef/resource_collection | |
parent | 4be1ebe66460efb0535e500d6ecb52a147346519 (diff) | |
download | chef-990974ca5cd44df0c77bb6a12fc57a3c32b92e23.tar.gz |
changes for rubocop engine upgrades.lcg/rubocop-upgrades
this is the result of changes to rules we already previously had
enabled.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource_collection')
-rw-r--r-- | lib/chef/resource_collection/resource_set.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource_collection/resource_set.rb b/lib/chef/resource_collection/resource_set.rb index 6ff29247a0..637ba48030 100644 --- a/lib/chef/resource_collection/resource_set.rb +++ b/lib/chef/resource_collection/resource_set.rb @@ -26,14 +26,14 @@ class Chef # Matches a multiple resource lookup specification, # e.g., "service[nginx,unicorn]" - MULTIPLE_RESOURCE_MATCH = /^(.+)\[(.+?),(.+)\]$/ + MULTIPLE_RESOURCE_MATCH = /^(.+)\[(.+?),(.+)\]$/.freeze # Matches a single resource lookup specification, # e.g., "service[nginx]" - SINGLE_RESOURCE_MATCH = /^(.+)\[(.*)\]$/ + SINGLE_RESOURCE_MATCH = /^(.+)\[(.*)\]$/.freeze # Matches e.g. "apt_update" with no name - NAMELESS_RESOURCE_MATCH = /^([^\[\]\s]+)$/ + NAMELESS_RESOURCE_MATCH = /^([^\[\]\s]+)$/.freeze def initialize @resources_by_key = Hash.new |