From f232e057169144252beeb98befdf1569b8e331a8 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Sat, 31 Dec 2011 15:22:49 +0000 Subject: [PATCH] use empty not nil --- .gitignore | 3 ++- lib/neography/node_traverser.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 29e89a2..c281909 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ +neo4j pkg/* *.gem .bundle -log/* \ No newline at end of file +log/* diff --git a/lib/neography/node_traverser.rb b/lib/neography/node_traverser.rb index 5942aa1..2899a9b 100644 --- a/lib/neography/node_traverser.rb +++ b/lib/neography/node_traverser.rb @@ -116,7 +116,7 @@ def iterator options["return filter"] = @filter unless @filter.nil? options["depth"] = @depth unless @depth.nil? - if @relationships[0]["type"].nil? + if @relationships[0]["type"].empty? rels = @from.neo_server.get_node_relationships(@from, @relationships[0]["direction"]) case @relationships[0]["direction"] when "in"