From 30b8d7019ce2dbf5edd6c8e9196178afb6fd9b75 Mon Sep 17 00:00:00 2001 From: Ivo Kubjas Date: Mon, 16 Dec 2024 13:07:39 +0000 Subject: [PATCH] chore: remove duplicate nil-check --- std/algebra/emulated/sw_bls12381/pairing.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/std/algebra/emulated/sw_bls12381/pairing.go b/std/algebra/emulated/sw_bls12381/pairing.go index 8f6018090..76798f42e 100644 --- a/std/algebra/emulated/sw_bls12381/pairing.go +++ b/std/algebra/emulated/sw_bls12381/pairing.go @@ -318,11 +318,6 @@ func (pr Pairing) AssertFinalExponentiationIsOne(x *GTEl) { panic(err) } - if err != nil { - // err is non-nil only for invalid number of inputs - panic(err) - } - residueWitness := pr.FromTower([12]*baseEl{res[0], res[1], res[2], res[3], res[4], res[5], res[6], res[7], res[8], res[9], res[10], res[11]}) // constrain cubicNonResiduePower to be in Fp6 // that is: a100=a101=a110=a111=a120=a121=0