Skip to content

Commit afccc3d

Browse files
committed
fix lint
Signed-off-by: noelwei <[email protected]>
1 parent 31ad3c9 commit afccc3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common/types/message/euclid/message_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ func TestDeserializeProof(t *testing.T) {
1515

1616
// Decode the JSON data into an BatchTask instance.
1717
var batchProof BatchProof
18-
if err := json.Unmarshal(data, &batchProof); err != nil {
18+
if err = json.Unmarshal(data, &batchProof); err != nil {
1919
t.Fatalf("failed to unmarshal JSON into Batch Proof: %v", err)
2020
}
21-
if err := batchProof.SanityCheck(); err != nil {
21+
if err = batchProof.SanityCheck(); err != nil {
2222
t.Fatalf("failed to sanity check for Batch Proof: %v", err)
2323
}
2424

@@ -30,10 +30,10 @@ func TestDeserializeProof(t *testing.T) {
3030

3131
// Decode the JSON data into an BatchTask instance.
3232
var bundleProof BundleProof
33-
if err := json.Unmarshal(data, &bundleProof); err != nil {
33+
if err = json.Unmarshal(data, &bundleProof); err != nil {
3434
t.Fatalf("failed to unmarshal JSON into Bundle Proof: %v", err)
3535
}
36-
if err := bundleProof.SanityCheck(); err != nil {
36+
if err = bundleProof.SanityCheck(); err != nil {
3737
t.Fatalf("failed to sanity check for Bundle Proof: %v", err)
3838
}
3939
}

0 commit comments

Comments
 (0)