Skip to content

Commit

Permalink
Merge pull request #3590 from ipfs/kevina/blockservice-nit
Browse files Browse the repository at this point in the history
blockservice: avoid using unnecessary continue statement
  • Loading branch information
whyrusleeping committed Jan 12, 2017
2 parents a31b256 + d086dc6 commit ea36c38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blockservice/blockservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea36c38

Please sign in to comment.