From: Grant Slater Date: Fri, 14 Oct 2022 10:13:43 +0000 (+0100) Subject: dns: fix cookstyle error X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ad62d51f720c7df61f6486cd19c4acb277c23908 dns: fix cookstyle error --- diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index 04a07f61c..e1233775f 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -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"