Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo

  • Loading branch information...
commit 6fbed1b8db15c79fe87db734f6bf5e3d94c1c652 1 parent 68ad4de
Nigel Small authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 geoff-core/src/main/java/org/neo4j/geoff/Neo4jNamespace.java
View
7 geoff-core/src/main/java/org/neo4j/geoff/Neo4jNamespace.java
@@ -220,11 +220,11 @@ public void apply(Iterable<Rule> rules) throws RuleApplicationException {
NodeToken a, RelationshipToken r, NodeToken b, Map<String, Object> properties
)
{
+ ArrayList<Relationship> relationships = new ArrayList<Relationship>();
if (isIncorrectlyTyped(r, 0)) {
return new ArrayList<Relationship>();
}
- Relationship relationship;
- relationship = relationshipStore.get(r).get(0);
+ Relationship relationship = relationshipStore.get(r).get(0);
if (nodeStore.contains(a)) {
if (!areEqual(nodeStore.get(a).get(0), relationship.getStartNode())) {
// start node mismatch
@@ -233,7 +233,7 @@ public void apply(Iterable<Rule> rules) throws RuleApplicationException {
}
if (nodeStore.contains(b)) {
if (!areEqual(nodeStore.get(b).get(0), relationship.getEndNode())) {
- // start node mismatch
+ // end node mismatch
return new ArrayList<Relationship>();
}
}
@@ -241,7 +241,6 @@ public void apply(Iterable<Rule> rules) throws RuleApplicationException {
nodeStore.put(b, relationship.getEndNode());
setProperties(relationship, properties);
relationshipStore.put(r, relationship);
- ArrayList<Relationship> relationships = new ArrayList<Relationship>();
relationships.add(relationship);
return relationships;
}
Please sign in to comment.
Something went wrong with that request. Please try again.