]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/providers/plugin.rb
More rubocop cleanup
[chef.git] / cookbooks / munin / providers / plugin.rb
index c058524b91a4a9303a6bdbc4971cf51b23a44d0e..2937190665a63025bbebe5ce350e34df90f6048d 100644 (file)
@@ -42,7 +42,7 @@ action :create do
       variables new_resource.conf_variables
     end
 
-    updated = updated || c.updated_by_last_action?
+    updated ||= c.updated_by_last_action?
   end
 
   new_resource.updated_by_last_action(updated)
@@ -61,7 +61,7 @@ action :delete do
       action :delete
     end
 
-    updated = updated || c.updated_by_last_action?
+    updated ||= c.updated_by_last_action?
   end
 
   new_resource.updated_by_last_action(updated)
@@ -79,8 +79,6 @@ def target_path
     "/usr/local/share/munin/plugins/#{target}"
   when ::File.exist?("/usr/share/munin/plugins/#{target}")
     "/usr/share/munin/plugins/#{target}"
-  else
-    nil
   end
 end