Skip to content

Commit

Permalink
based on comment from #156 from @rdvdijk
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Mar 10, 2014
1 parent f2d11ef commit 69bf512
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/neography/rest/other_node_relationships.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def get(id, other_id, direction = "all", types = [nil])
:headers => json_content_type
}

node_relationships = @connection.post(base_path(:id => get_id(id)), options) || []

return [] if node_relationships.empty?
node_relationships
@connection.post(base_path(:id => get_id(id)), options) || []
end

end
Expand Down

0 comments on commit 69bf512

Please sign in to comment.