Skip to content

Commit 11c54d3

Browse files
committed
check nil first, then empty, you doofus
1 parent 46ed119 commit 11c54d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/esdb/match.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def summaries?
66
hash = self.to_hash
77
if hash['entities'].any?
88
summaries = hash['entities'].collect{|e| e['summary']}
9-
return summaries.reject{|s| s.empty? || s.nil?}.any?
9+
return summaries.reject{|s| s.nil? || s.empty?}.any?
1010
end
1111
false
1212
end

0 commit comments

Comments
 (0)