diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-18 09:12:29 -0800 |
commit | 86643d99789002eca3f064f3450fe48dcd316753 (patch) | |
tree | 525ffeff996a1333a498d33821fe7257281a8337 /tasks | |
parent | ca084429991a141127c80e9d2a08cb1bb68585c4 (diff) | |
download | chef-86643d99789002eca3f064f3450fe48dcd316753.tar.gz |
Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimeters
See chef/chefstyle#11 for analysis and discussion. We select '{}' since
audit of our source code shows that is the most common, and that used to
be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/maintainers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/maintainers.rb b/tasks/maintainers.rb index 4b9f78be14..a67e4a2f60 100644 --- a/tasks/maintainers.rb +++ b/tasks/maintainers.rb @@ -121,14 +121,14 @@ begin end def prepare_teams(cmp) - %w(text paths).each { |k| cmp.delete(k) } + %w{text paths}.each { |k| cmp.delete(k) } if cmp.key?("team") team = cmp.delete("team") add_members(team, cmp.delete("lieutenant")) if cmp.key?("lieutenant") add_members(team, cmp.delete("maintainers")) if cmp.key?("maintainers") set_team_title(team, cmp.delete("title")) else - %w(maintainers lieutenant title).each { |k| cmp.delete(k) } + %w{maintainers lieutenant title}.each { |k| cmp.delete(k) } end cmp.each { |_k, v| prepare_teams(v) } end |