From 027cca12c2d63e3d62b670d901e8a2c95854feec Mon Sep 17 00:00:00 2001 From: ia Date: Sat, 16 Jun 2018 23:55:11 +0000 Subject: [PATCH] all: gofmt Just ran gofmt -w . on the project root. That's all. Change-Id: Ia90223dda399c1df67e7bcf75c6773de63902cc8 GitHub-Last-Rev: 8ba80b96761b077a4e084a93d5f18e6b2f7375ad GitHub-Pull-Request: golang/crypto#52 Reviewed-on: https://go-review.googlesource.com/119375 Reviewed-by: Brad Fitzpatrick --- bn256/bn256.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/bn256/bn256.go b/bn256/bn256.go index 479e731..ff27feb 100644 --- a/bn256/bn256.go +++ b/bn256/bn256.go @@ -109,7 +109,6 @@ func (e *G1) Marshal() []byte { xBytes := new(big.Int).Mod(e.p.x, p).Bytes() yBytes := new(big.Int).Mod(e.p.y, p).Bytes() - ret := make([]byte, numBytes*2) copy(ret[1*numBytes-len(xBytes):], xBytes) copy(ret[2*numBytes-len(yBytes):], yBytes) @@ -224,7 +223,6 @@ func (n *G2) Marshal() []byte { yxBytes := new(big.Int).Mod(n.p.y.x, p).Bytes() yyBytes := new(big.Int).Mod(n.p.y.y, p).Bytes() - ret := make([]byte, numBytes*4) copy(ret[1*numBytes-len(xxBytes):], xxBytes) copy(ret[2*numBytes-len(xyBytes):], xyBytes)