Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson committed Sep 20, 2022
1 parent 2a64b12 commit 4daa236
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/neo4j/http/batch_node_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ def upsert_node(node)

{
statement: upsert_node_cypher(node: node),
parameters: { key_value: node.key_value, attributes: node.attributes }
parameters: {key_value: node.key_value, attributes: node.attributes}
}
end

def delete_node(node)
{
statement: delete_node_cypher(node: node),
parameters: { key_value: node.key_value }
parameters: {key_value: node.key_value}
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/http/relationship_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def upsert_relationship_cypher(relationship:, from:, to:, create_nodes:)
CYPHER
end

cypher = +<<-CYPHER
<<-CYPHER
#{match_or_merge} (#{from_selector})
#{match_or_merge} (#{to_selector})
MERGE (from) - [#{relationship_selector}] - (to)
Expand Down
4 changes: 2 additions & 2 deletions spec/neo4j/http/batch_node_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
it "updates the existing node" do
uuid = "MyUuid"
# Insert the node
node1 = create_node({ uuid: uuid, name: "Foo" })
node1 = create_node({uuid: uuid, name: "Foo"})

expect(node1["uuid"]).to eq(uuid)
expect(node1["name"]).to eq("Foo")
Expand All @@ -57,7 +57,7 @@
it "deletes a node" do
uuid = "MyUuid"
# Inspect the statement payload before executing
node1 = create_node({ uuid: uuid, name: "Foo" })
create_node({uuid: uuid, name: "Foo"})
node_in = Neo4j::Http::Node.new(label: "Test", uuid: uuid)

# Batch delete the node
Expand Down
2 changes: 1 addition & 1 deletion spec/neo4j/http/node_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
it "deletes the existing node" do
uuid = "MyUuid"
node_in = Neo4j::Http::Node.new(label: "Test", uuid: uuid, name: "Foo")
node1 = client.upsert_node(node_in)
client.upsert_node(node_in)

client.delete_node(node_in)

Expand Down

0 comments on commit 4daa236

Please sign in to comment.