From 69bf512896c79f4956fb9ef8c2c88b1044b1abf6 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Mon, 10 Mar 2014 18:27:44 -0500 Subject: [PATCH] based on comment from #156 from @rdvdijk --- lib/neography/rest/other_node_relationships.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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