From f3de2cb37e6d4ba4b8452935f198886d310ad301 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 4 Oct 2023 10:18:27 -0300 Subject: [PATCH] ci: make the linter happy on unrelated code Signed-off-by: Ignacio Hagopian --- proof_ipa.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/proof_ipa.go b/proof_ipa.go index 98d53999..7de6c86c 100644 --- a/proof_ipa.go +++ b/proof_ipa.go @@ -60,14 +60,10 @@ func (vp *VerkleProof) Copy() *VerkleProof { IPAProof: &IPAProof{}, } - for i := range vp.OtherStems { - ret.OtherStems[i] = vp.OtherStems[i] - } - + copy(ret.OtherStems, vp.OtherStems) copy(ret.DepthExtensionPresent, vp.DepthExtensionPresent) - for i := range vp.CommitmentsByPath { - ret.CommitmentsByPath[i] = vp.CommitmentsByPath[i] - } + copy(ret.CommitmentsByPath, vp.CommitmentsByPath) + ret.D = vp.D if vp.IPAProof != nil {