Skip to content

Commit bc0516d

Browse files
committed
fixing previous commit oddity
1 parent b86e5a1 commit bc0516d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/esdb/identity.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ def to_hash
44
get! unless @response
55
hash = JSON.parse(@response)
66

7+
Rails.logger.info hash.inspect
8+
79
# Only include stats for ourself.
8-
hash['stats'] = hash['stats'][hash['id'].to_s]
10+
hash['stats'] = hash['stats'][hash['id'].to_s] if hash['stats']
911
hash
1012
end
1113
end

0 commit comments

Comments
 (0)