Commit ea36c384 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #3590 from ipfs/kevina/blockservice-nit

blockservice: avoid using unnecessary continue statement
parents a31b256e d086dc63
......@@ -112,10 +112,9 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) {
if err != nil {
return nil, err
}
if has {
continue
if !has {
toput = append(toput, b)
}
toput = append(toput, b)
}
} else {
toput = bs
......
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