mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
Merge pull request #3590 from ipfs/kevina/blockservice-nit
blockservice: avoid using unnecessary continue statement
This commit is contained in:
@ -112,10 +112,9 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if has {
|
if !has {
|
||||||
continue
|
toput = append(toput, b)
|
||||||
}
|
}
|
||||||
toput = append(toput, b)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
toput = bs
|
toput = bs
|
||||||
|
Reference in New Issue
Block a user