]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/files/default/replication-bin/replicate-changesets
Fix rubocop warnings
[chef.git] / cookbooks / planet / files / default / replication-bin / replicate-changesets
index e71d4c5482aae3a861f250de6ddde77accafc870..f158ef3da4879e828bbae2471d0d71ad6a5327b6 100644 (file)
@@ -120,9 +120,7 @@ end
 ##
 # sync a file to guarantee it's on disk
 def fsync(f)
 ##
 # sync a file to guarantee it's on disk
 def fsync(f)
-  File.open(f) do |fh|
-    fh.fsync
-  end
+  File.open(f, &:fsync)
 end
 
 ##
 end
 
 ##