Browse files

Removed unecessary type check for gremlin results with new util.trans…

…form() functionality
  • Loading branch information...
1 parent 3e374b7 commit 318d68e9fa1e4ccc69810e0bacfd3231b8b62329 Stephen Rivas JR committed Sep 14, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/GraphDatabase._coffee
View
12 lib/GraphDatabase._coffee
@@ -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

0 comments on commit 318d68e

Please sign in to comment.