From a0bbf243f7f0b4c7f3a2df9941541d6a8a63d1f1 Mon Sep 17 00:00:00 2001 From: John Carroll Date: Wed, 27 Dec 2017 22:04:45 -0800 Subject: [PATCH] fix: formatting --- lib/neo4j-core/query.rb | 1 - lib/neo4j-core/query_clauses.rb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/neo4j-core/query.rb b/lib/neo4j-core/query.rb index 535c5cfb..07e08585 100644 --- a/lib/neo4j-core/query.rb +++ b/lib/neo4j-core/query.rb @@ -175,7 +175,6 @@ def inspect DEFINED_CLAUSES[clause.to_sym] = clause_class define_method(clause) do |*args| - # the args splat will contain the method options, if any were given build_deeper_query(clause_class, args).ergo do |result| BREAK_METHODS.include?(clause) ? result.break : result end diff --git a/lib/neo4j-core/query_clauses.rb b/lib/neo4j-core/query_clauses.rb index a2463e2b..c5536bb0 100644 --- a/lib/neo4j-core/query_clauses.rb +++ b/lib/neo4j-core/query_clauses.rb @@ -772,7 +772,6 @@ def clause_string(clauses, pretty) strings = clause_strings(clauses, pretty) stripped_string = strings.join(clause_join) stripped_string.strip! - (pretty && strings.size > 1) ? self::PRETTY_NEW_LINE + stripped_string : stripped_string end # If `.union()` was called with `all: true` option, insert 'UNION ALL' clause @@ -794,7 +793,7 @@ def clause_strings(clauses, pretty) end def clause_join(options = {}) - ' ' + '' end end end