Skip to content

Commit

Permalink
Removed unecessary type check for gremlin results with new util.trans…
Browse files Browse the repository at this point in the history
…form() functionality
  • Loading branch information
Stephen Rivas JR committed Sep 14, 2012
1 parent 3e374b7 commit 318d68e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/GraphDatabase._coffee
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,8 @@ module.exports = class GraphDatabase
# Database error
throw response

# Success: build result maps, and transform nodes/relationships
body = response.body # JSON already parsed by request

if body instanceof Array
results = for row in body
map = util.transform row, this
map
else
results = util.transform body, this

# Success: transform nodes/relationships
results = util.transform response.body, this
return results

catch error
Expand Down

0 comments on commit 318d68e

Please sign in to comment.