]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/recipes/default.rb
dns: fix cookstyle error
[chef.git] / cookbooks / dns / recipes / default.rb
index 04a07f61cac3c68e617765d77bd02f2105660152..e1233775f3b0ea594b30066bb5519b9cd309231b 100644 (file)
@@ -43,11 +43,7 @@ cache_dir = Chef::Config[:file_cache_path]
 
 dnscontrol_version = "3.20.0"
 
-if arm?
-  dnscontrol_arch = "arm64"
-else
-  dnscontrol_arch = "amd64"
-end
+dnscontrol_arch = arm? ? "arm64" : "amd64"
 
 remote_file "#{cache_dir}/dnscontrol-#{dnscontrol_version}.deb" do
   source "https://github.com/StackExchange/dnscontrol/releases/download/v#{dnscontrol_version}/dnscontrol-#{dnscontrol_version}.#{dnscontrol_arch}.deb"