From 510a42a7d8c5fb724e07439bf2f7dce3ca6e918d Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Thu, 27 Jul 2023 23:02:12 +0300 Subject: [PATCH] refactor: Remove the unnecessary append --- packages/solo/solo.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/solo/solo.go b/packages/solo/solo.go index 623d5713f0..de303b2d2b 100644 --- a/packages/solo/solo.go +++ b/packages/solo/solo.go @@ -407,9 +407,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