node/accountant: fix linter warnings

This commit is contained in:
tbjump 2023-05-03 22:27:47 +00:00 committed by tbjump
parent 8f1ab74b53
commit e420d26356
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ func newAccountantForTest(
} }
// Converts a string into a go-ethereum Hash object used as test input. // 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') { if (len(str) > 2) && (str[0] == '0') && (str[1] == 'x') {
str = str[2:] str = str[2:]
} }

View File

@ -408,7 +408,7 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse
} }
var msg sdktypes.TxMsgData 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) return nil, fmt.Errorf("failed to unmarshal data: %w", err)
} }