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) { ...@@ -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
......
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