Skip to content

Commit

Permalink
reordered if-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
huboneo committed Aug 16, 2019
1 parent 69f464a commit ab3c3d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/browser/modules/Stream/CypherFrame/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ function mapNeo4jValuesToPlainValues (values) {
return map(values, mapNeo4jValuesToPlainValues)
}

if (isNeo4jValue(values)) {
return neo4jValueToPlainValue(values)
}

// could be a Node or Relationship
const type = lowerCase(get(values, 'constructor.name', ''))

Expand All @@ -351,10 +355,6 @@ function mapNeo4jValuesToPlainValues (values) {
}
}

if (isNeo4jValue(values)) {
return neo4jValueToPlainValue(values)
}

return reduce(
entries(values),
(agg, [key, value]) => ({
Expand Down

0 comments on commit ab3c3d7

Please sign in to comment.