]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/edit_file.rb
Bump cookstyle from 6.21.1 to 7.0.0
[chef.git] / cookbooks / chef / libraries / edit_file.rb
index 6260c8a40c182f937e592ca882d91c32035b1e5a..bfbec455cebc82d00acc90725b70b627c9e3f36a 100644 (file)
@@ -1,10 +1,10 @@
 class Chef
   module Mixin
     module EditFile
 class Chef
   module Mixin
     module EditFile
-      def edit_file(file, &block)
+      def edit_file(file, &_block)
         Chef::DelayedEvaluator.new do
           ::File.new(file).collect do |line|
         Chef::DelayedEvaluator.new do
           ::File.new(file).collect do |line|
-            block.call(line)
+            yield line
           end.join("")
         end
       end
           end.join("")
         end
       end