]> git.openstreetmap.org Git - chef.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Sun, 14 Jun 2015 21:32:29 +0000 (22:32 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 14 Jun 2015 21:32:29 +0000 (22:32 +0100)
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
-            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}"