Commit 7c378126 authored by Brian Tiger Chow's avatar Brian Tiger Chow

style(bitswap:notifications) rm explicit returns

parent d294f7dc
......@@ -33,13 +33,11 @@ func (ps *notifications) Subscribe(ctx context.Context, k u.Key) <-chan *blocks.
select {
case val := <-subChan:
block, ok := val.(*blocks.Block)
if !ok {
return
if ok {
blockChannel <- block
}
blockChannel <- block
case <-ctx.Done():
ps.wrapped.Unsub(subChan, topic)
return
}
}()
return blockChannel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment