Skip to content

Commit

Permalink
use empty not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Dec 31, 2011
1 parent 5ac7729 commit f232e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
neo4j
pkg/*
*.gem
.bundle
log/*
log/*
2 changes: 1 addition & 1 deletion lib/neography/node_traverser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f232e05

Please sign in to comment.