Fix more rubocop detected style issues
[chef.git] / cookbooks / postgresql / providers / table.rb
index 4a2b43f5dd3dd885b161fcf16acde33792d23685..7bc8cfb020fd16af0d31f74914e45d3698a8a9fc 100644 (file)
@@ -42,7 +42,7 @@ action :create do
       end
     end
 
-    @current_resource.permissions.each do |user,privileges|
+    @current_resource.permissions.each_key do |user|
       unless new_resource.permissions[user]
         converge_by("revoke all for #{user} on #{new_resource}") do
           Chef::Log.info("Revoking all for #{user} on #{new_resource}")
@@ -51,10 +51,10 @@ action :create do
       end
     end
 
-    new_resource.permissions.each do |user,new_privileges|
+    new_resource.permissions.each do |user, new_privileges|
       current_privileges = @current_resource.permissions[user] || {}
       new_privileges = Array(new_privileges)
-      
+
       if new_privileges.include?(:all)
         new_privileges |= Chef::PostgreSQL::TABLE_PRIVILEGES
       end