From: Tom Hughes Date: Sun, 14 Jun 2015 21:32:29 +0000 (+0100) Subject: Fix new rubocop warnings X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/e11280b3d291a2be021d4c7bea3252d01547d447?hp=5b30f6bb5adba92a85a73510bebbe2b052a1faea Fix new rubocop warnings --- diff --git a/cookbooks/chef/libraries/subversion.rb b/cookbooks/chef/libraries/subversion.rb index 787f64b3d..b5ac6f301 100644 --- a/cookbooks/chef/libraries/subversion.rb +++ b/cookbooks/chef/libraries/subversion.rb @@ -25,7 +25,8 @@ class Chef @repo_attrs ||= svn_info.lines.each_with_object({}) do |line, attrs| if line =~ SVN_INFO_PATTERN - property, value = Regexp.last_match[1], Regexp.last_match[2] + property = Regexp.last_match[1] + value = Regexp.last_match[2] attrs[property] = value else fail "Could not parse `svn info` data: #{line}"