Skip to content

Commit

Permalink
chore: refactor after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Jul 26, 2023
1 parent 2f4c7db commit c9f9a23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/icij/datashare/Neo4jUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ protected Statement validated(Long defaultLimit) {
}
ExposesReturning returned;
if (this.where != null) {
// OK here since this.match can't be empty, hence statement != null
returned = statement.where(this.where.into());
} else {
returned = statement;
Expand Down Expand Up @@ -352,6 +353,7 @@ protected PathPattern(
@JsonProperty("relationships") List<PatternRelationship> relationships,
@JsonProperty("optional") Boolean optional
) {
java.util.Objects.requireNonNull(nodes, "missing pattern nodes");
int numNodes = nodes.size();
if (numNodes > 0) {
if (relationships == null) {
Expand Down

0 comments on commit c9f9a23

Please sign in to comment.