channeldb: check chanIndex bucket for nilness instead of edges

This commit is contained in:
halseth authored and Olaoluwa Osuntokun committed 2017-09-19 05:40:29 +02:00
1 parent 90d13cf70c
commit 8693e8babc
1 file changed
+1 -1
+1 -1
View File
@@ -734,7 +734,7 @@ func (c *ChannelGraph) ChannelID(chanPoint *wire.OutPoint) (uint64, error) {
return ErrGraphNoEdgesFound return ErrGraphNoEdgesFound
} }
chanIndex := edges.Bucket(channelPointBucket) chanIndex := edges.Bucket(channelPointBucket)
if edges == nil { if chanIndex == nil {
return ErrGraphNoEdgesFound return ErrGraphNoEdgesFound
} }