]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/subversion.rb
Fix new rubocop warnings
[chef.git] / cookbooks / chef / libraries / subversion.rb
index 787f64b3dc77b883d44840627cfe5c4e273e8aa8..b5ac6f3010d535fd3085fec2d199ab8e08258e14 100644 (file)
@@ -25,7 +25,8 @@ class Chef
 
         @repo_attrs ||= svn_info.lines.each_with_object({}) do |line, attrs|
           if line =~ SVN_INFO_PATTERN
 
         @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}"
             attrs[property] = value
           else
             fail "Could not parse `svn info` data: #{line}"