From 746562d6358c27b838c95ea27b2a2bd82c03cefe Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 17 Jan 2018 13:34:18 -0800 Subject: prepping for rubocop 0.52.1 Signed-off-by: Lamont Granquist --- tasks/maintainers.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks/maintainers.rb') diff --git a/tasks/maintainers.rb b/tasks/maintainers.rb index f6385860c4..d2fc482a28 100644 --- a/tasks/maintainers.rb +++ b/tasks/maintainers.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright 2015-2016, Chef Software, Inc. +# Copyright:: Copyright 2015-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -131,7 +131,7 @@ begin else %w{maintainers lieutenant title}.each { |k| cmp.delete(k) } end - cmp.each { |_k, v| prepare_teams(v) } + cmp.each_value { |v| prepare_teams(v) } end def update_team(team, additions, deletions) @@ -189,7 +189,7 @@ begin end out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.has_key?("maintainers") cmp.delete("paths") - cmp.each { |k, v| out << format_components(v) } + cmp.each_value { |v| out << format_components(v) } out end -- cgit v1.2.1