]> git.openstreetmap.org Git - chef.git/commitdiff
Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Wed, 7 Sep 2016 10:43:36 +0000 (11:43 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 7 Sep 2016 10:43:36 +0000 (11:43 +0100)
.rubocop_todo.yml
cookbooks/planet/files/default/replication-bin/replicate-changesets

index 343c145d3cc488741c4e0dbed47f5a11f6b4de9d..13b8fc9df55785b201df4563cdf9bc794ee89e72 100644 (file)
@@ -27,7 +27,7 @@ Metrics/LineLength:
 # Offense count: 23
 # Configuration parameters: CountComments.
 Metrics/MethodLength:
-  Max: 30
+  Max: 40
 
 # Offense count: 1
 Metrics/PerceivedComplexity:
index e71d4c5482aae3a861f250de6ddde77accafc870..f158ef3da4879e828bbae2471d0d71ad6a5327b6 100644 (file)
@@ -120,9 +120,7 @@ end
 ##
 # 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
 
 ##