]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Fix broken nesting in lib/mv/plugins/postfixadmin.rb.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Nov 2015 23:13:11 +0000 (18:13 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Nov 2015 23:13:11 +0000 (18:13 -0500)
lib/mv/plugins/postfixadmin.rb

index 659b9b7d7166f98d2974cdc53159098cc9a9e8af..9317b4b7d12d6c0dd64702793a072bc951e23178 100644 (file)
@@ -43,15 +43,16 @@ class PostfixadminMv
                                 @db_name, @db_user, @db_pass)
 
     sql_queries.each do |sql_query|
-        varchar = 1043 # from pg_type.h
-        params = [{:value => dst.to_s(), :type => varchar},
-                  {:value => dst.domainpart(), :type => varchar},
-                  {:value => dst.localpart(), :type => varchar},
-        {:value => src.to_s(), :type => varchar}]
+      varchar = 1043 # from pg_type.h
+      params = [{:value => dst.to_s(), :type => varchar},
+                {:value => dst.domainpart(), :type => varchar},
+                {:value => dst.localpart(), :type => varchar},
+                {:value => src.to_s(), :type => varchar}]
+
+      connection.query(sql_query, params)
+    end
 
-    connection.query(sql_query, params)
     connection.close()
   end
 
-
 end