Skip to content

Commit bc609e8

Browse files
authored
core/vm: remove redundant error checks (#29692)
1 parent 682ee82 commit bc609e8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

core/vm/contracts.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,6 @@ func (c *bls12381MapG1) Run(input []byte) ([]byte, error) {
11231123

11241124
// Compute mapping
11251125
r := bls12381.MapToG1(fe)
1126-
if err != nil {
1127-
return nil, err
1128-
}
11291126

11301127
// Encode the G1 point to 128 bytes
11311128
return encodePointG1(&r), nil
@@ -1159,9 +1156,6 @@ func (c *bls12381MapG2) Run(input []byte) ([]byte, error) {
11591156

11601157
// Compute mapping
11611158
r := bls12381.MapToG2(bls12381.E2{A0: c0, A1: c1})
1162-
if err != nil {
1163-
return nil, err
1164-
}
11651159

11661160
// Encode the G2 point to 256 bytes
11671161
return encodePointG2(&r), nil

0 commit comments

Comments
 (0)