routing/chainview: check GetCFilter error

Since the filter will never be nil in non-error cases now, remove the
nil-check.
This commit is contained in:
Johan T. Halseth committed 2019-10-15 10:31:25 +02:00
1 parent 5cbef663e4
commit 610a93e2ff
1 file changed
+1 -5
+1 -5
View File
@@ -239,11 +239,7 @@ func (c *CfFilteredChainView) FilterBlock(blockHash *chainhash.Hash) (*FilteredB
// outpoint that have been spent.
filter, err := c.p2pNode.GetCFilter(*blockHash, wire.GCSFilterRegular)
if err != nil {
return nil, err
}
if filter == nil {
return nil, fmt.Errorf("Unable to fetch filter")
return nil, fmt.Errorf("unable to fetch filter: %v", err)
}
// Before we can match the filter, we'll need to map each item in our