Commit 53eb10a4 authored by Kevin Atkinson's avatar Kevin Atkinson

blockservice: avoid using unnecessary continue statement

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent d0390c91
......@@ -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