From e420d26356f2fa4046f99c4a6b3b1b4a021c76d8 Mon Sep 17 00:00:00 2001 From: tbjump Date: Wed, 3 May 2023 22:27:47 +0000 Subject: [PATCH] node/accountant: fix linter warnings --- node/pkg/accountant/accountant_test.go | 2 +- node/pkg/accountant/submit_obs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/pkg/accountant/accountant_test.go b/node/pkg/accountant/accountant_test.go index 864eda6f6..8b485989f 100644 --- a/node/pkg/accountant/accountant_test.go +++ b/node/pkg/accountant/accountant_test.go @@ -132,7 +132,7 @@ func newAccountantForTest( } // Converts a string into a go-ethereum Hash object used as test input. -func hashFromString(str string) ethCommon.Hash { +func hashFromString(str string) ethCommon.Hash { //nolint:unparam if (len(str) > 2) && (str[0] == '0') && (str[1] == 'x') { str = str[2:] } diff --git a/node/pkg/accountant/submit_obs.go b/node/pkg/accountant/submit_obs.go index 1c2d2b8b9..ede540d24 100644 --- a/node/pkg/accountant/submit_obs.go +++ b/node/pkg/accountant/submit_obs.go @@ -408,7 +408,7 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse } var msg sdktypes.TxMsgData - if err := msg.Unmarshal([]byte(data)); err != nil { + if err := msg.Unmarshal(data); err != nil { return nil, fmt.Errorf("failed to unmarshal data: %w", err) }