1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-03 21:08:17 +08:00

blockservice: avoid using unnecessary continue statement

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
Kevin Atkinson
2017-01-11 18:24:11 -05:00
parent a3b38e8be8
commit d086dc63ce

View File

@ -112,11 +112,10 @@ 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
} }