Skip to content

Commit f3de2cb

Browse files
committed
ci: make the linter happy on unrelated code
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent de81293 commit f3de2cb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

proof_ipa.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,10 @@ func (vp *VerkleProof) Copy() *VerkleProof {
6060
IPAProof: &IPAProof{},
6161
}
6262

63-
for i := range vp.OtherStems {
64-
ret.OtherStems[i] = vp.OtherStems[i]
65-
}
66-
63+
copy(ret.OtherStems, vp.OtherStems)
6764
copy(ret.DepthExtensionPresent, vp.DepthExtensionPresent)
68-
for i := range vp.CommitmentsByPath {
69-
ret.CommitmentsByPath[i] = vp.CommitmentsByPath[i]
70-
}
65+
copy(ret.CommitmentsByPath, vp.CommitmentsByPath)
66+
7167
ret.D = vp.D
7268

7369
if vp.IPAProof != nil {

0 commit comments

Comments
 (0)