diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-10 08:03:06 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-10 08:03:06 +0900 |
commit | e0d147fa905eb5cd71797777c69b0aaff0802eb5 (patch) | |
tree | 13b9d6ca6929475b7d6ef2046c5c02168046c01f | |
parent | f569955e061dd8a587f1052fe30cb9684eeb848a (diff) | |
download | rails-e0d147fa905eb5cd71797777c69b0aaff0802eb5.tar.gz rails-e0d147fa905eb5cd71797777c69b0aaff0802eb5.tar.bz2 rails-e0d147fa905eb5cd71797777c69b0aaff0802eb5.zip |
Fix odd indentation
-rw-r--r-- | activerecord/lib/arel/visitors/mysql.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/activerecord/lib/arel/visitors/mysql.rb b/activerecord/lib/arel/visitors/mysql.rb index 5d10088427..32f6705d04 100644 --- a/activerecord/lib/arel/visitors/mysql.rb +++ b/activerecord/lib/arel/visitors/mysql.rb @@ -9,20 +9,20 @@ module Arel # :nodoc: all collector << "( " end - collector = case o.left - when Arel::Nodes::Union - visit_Arel_Nodes_Union o.left, collector, true - else - visit o.left, collector + case o.left + when Arel::Nodes::Union + visit_Arel_Nodes_Union o.left, collector, true + else + visit o.left, collector end collector << " UNION " - collector = case o.right - when Arel::Nodes::Union - visit_Arel_Nodes_Union o.right, collector, true - else - visit o.right, collector + case o.right + when Arel::Nodes::Union + visit_Arel_Nodes_Union o.right, collector, true + else + visit o.right, collector end if suppress_parens |