Fix issues reported by new rubocop
[chef.git] / cookbooks / nominatim / recipes / base.rb
index c8e996655b7dba2f93c561e7bc650244777951b7..8721ef0146e987bf4018cad29cd7b2d10575551f 100644 (file)
@@ -158,11 +158,11 @@ file "#{source_directory}/settings/ip_blocks.map" do
   mode 0664
 end
 
-if node[:nominatim][:enabled]
-  cron_action = :create
-else
-  cron_action = :delete
-end
+cron_action = if node[:nominatim][:enabled]
+                :create
+              else
+                :delete
+              end
 
 template "/etc/cron.d/nominatim" do
   action cron_action