Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
John Carroll committed Dec 28, 2017
1 parent 31aeb02 commit a0bbf24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion lib/neo4j-core/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions lib/neo4j-core/query_clauses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -794,7 +793,7 @@ def clause_strings(clauses, pretty)
end

def clause_join(options = {})
' '
''
end
end
end
Expand Down

0 comments on commit a0bbf24

Please sign in to comment.