]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/edit_file.rb
Fix more rubocop detected style issues
[chef.git] / cookbooks / chef / libraries / edit_file.rb
index ea200c845cc74567c55606ed4fdf264e1b04e24d..a3c892d719f4332c696813364dc7ac85ecdac343 100644 (file)
@@ -3,7 +3,7 @@ class Chef
     def edit_file(file, &block)
       Chef::DelayedEvaluator.new do
         ::File.new(file).collect do |line|
-          line = block.call(line)
+          block.call(line)
         end.join("")
       end
     end