]> git.openstreetmap.org Git - chef.git/commitdiff
Fix new cookstyle warnings
authorTom Hughes <tom@compton.nu>
Fri, 6 Nov 2020 08:20:11 +0000 (08:20 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 6 Nov 2020 08:20:11 +0000 (08:20 +0000)
cookbooks/web/resources/rails_port.rb

index ba3f06aaade7928d232a54b74a0a6e9e038c207a..978dcb70fb952d4944e50dce69ed1473da68d839 100644 (file)
@@ -322,7 +322,7 @@ action :create do
     "storage_service",
     "storage_url",
     "tile_cdn_url"
     "storage_service",
     "storage_url",
     "tile_cdn_url"
-  ).reject { |_k, v| v.nil? }.merge(
+  ).compact.merge(
     "server_protocol" => "https",
     "server_url" => new_resource.site,
     "support_email" => "support@openstreetmap.org",
     "server_protocol" => "https",
     "server_url" => new_resource.site,
     "support_email" => "support@openstreetmap.org",