diff --git a/lib/neography/rest/other_node_relationships.rb b/lib/neography/rest/other_node_relationships.rb index d52e438..14f8d91 100644 --- a/lib/neography/rest/other_node_relationships.rb +++ b/lib/neography/rest/other_node_relationships.rb @@ -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