]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/accounts/recipes/default.rb
Fix rubocop warnings
[chef.git] / cookbooks / accounts / recipes / default.rb
index e043d9e3ed6c43fd894b712886be820897c7193e..d6c7806fd62fce386a0e5722a7a8fe590cf6db18 100644 (file)
@@ -78,9 +78,7 @@ search(:accounts, "*:*").each do |account|
       end
     end
 
       end
     end
 
-    if details[:status] == "administrator"
-      administrators.push(name.to_s)
-    end
+    administrators.push(name.to_s) if details[:status] == "administrator"
   else
     user name.to_s do
       action :remove
   else
     user name.to_s do
       action :remove