Skip to content

Commit 29263c4

Browse files
committed
bindings/go: resolve golangci-lint nitpicks.
1 parent 6d960cd commit 29263c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bindings/go/blst_htoc_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func jsonG1HashToCurve(t *testing.T, fname string) {
8282
for _, v := range vectorsArr {
8383
testMap, ok := v.(map[string]interface{})
8484
if !ok {
85-
t.Errorf("Could not cast vector to map")
85+
t.Error("Could not cast vector to map")
8686
}
8787

8888
msg := []byte(testMap["msg"].(string))
@@ -95,7 +95,7 @@ func jsonG1HashToCurve(t *testing.T, fname string) {
9595
}
9696

9797
if !p1Hashed.Equals(p1Expected) {
98-
t.Errorf("hashed != expected")
98+
t.Error("hashed != expected")
9999
}
100100
}
101101
}
@@ -162,7 +162,7 @@ func jsonG2HashToCurve(t *testing.T, fname string) {
162162
for _, v := range vectorsArr {
163163
testMap, ok := v.(map[string]interface{})
164164
if !ok {
165-
t.Errorf("Could not cast vector to map")
165+
t.Error("Could not cast vector to map")
166166
}
167167

168168
msg := []byte(testMap["msg"].(string))
@@ -175,7 +175,7 @@ func jsonG2HashToCurve(t *testing.T, fname string) {
175175
}
176176

177177
if !p2Hashed.Equals(p2Expected) {
178-
t.Errorf("hashed != expected")
178+
t.Error("hashed != expected")
179179
}
180180
}
181181
}

bindings/go/blst_miller_loop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ func TestMillerLoopN(t *testing.T) {
3333
}
3434

3535
if !naive.Equals(Fp12MillerLoopN(qs, ps)) {
36-
t.Errorf("failed self-consistency Fp12MillerLoopN test")
36+
t.Error("failed self-consistency Fp12MillerLoopN test")
3737
}
3838
}

0 commit comments

Comments
 (0)