Skip to content

Commit

Permalink
Merge pull request #2753 from howjmay/minor-refactor
Browse files Browse the repository at this point in the history
refactor: Remove the unnecessary append
  • Loading branch information
howjmay authored Jul 27, 2023
2 parents 9949512 + 510a42a commit 42fc64c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/solo/solo.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,8 @@ func (ch *Chain) collateBatch() []isc.Request {
if batchSize > maxBatch {
batchSize = maxBatch
}
ret := make([]isc.Request, 0)
ret = append(ret, requests[:batchSize]...)
return ret

return requests[:batchSize]
}

// batchLoop mimics behavior Wasp consensus
Expand Down

0 comments on commit 42fc64c

Please sign in to comment.