Permalink
Browse files

use empty not nil

  • Loading branch information...
maxdemarzi committed Dec 31, 2011
1 parent 5ac7729 commit f232e057169144252beeb98befdf1569b8e331a8
Showing with 3 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 lib/neography/node_traverser.rb
View
@@ -1,4 +1,5 @@
neo4j
pkg/*
*.gem
.bundle
log/*
log/*
@@ -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"

0 comments on commit f232e05

Please sign in to comment.