]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Fix some foodcritic complaints
[chef.git] / cookbooks / tilecache / recipes / default.rb
index ce4819ad098a21621f162de63ef6a76707adb55c..19c99b0ce9482752f154cb950dfc726a00af1709 100644 (file)
@@ -84,7 +84,7 @@ nginx_site "default" do
 end
 
 resolvers = node[:networking][:nameservers].map do |resolver|
-  IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : "#{resolver}"
+  IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
 end
 
 nginx_site "tile-ssl" do