Skip to content

Commit

Permalink
chore: fixed go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Oct 10, 2024
1 parent bbe9c91 commit a334d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewConverter() *Converter {
}
}

func (c *Converter) UnmarshalJSON(bytes []byte, target proto.Message) error {
func (c *Converter) Unmarshal(bytes []byte, target proto.Message) error {
return c.parseCodec.UnmarshalJSON(bytes, target)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/tendermint/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func (rpc *RPC) Get(
}
}

if decodeErr := rpc.Converter.UnmarshalJSON(bytes, target); decodeErr != nil {
if decodeErr := rpc.Converter.Unmarshal(bytes, target); decodeErr != nil {
rpc.Logger.Warn().Str("url", url).Err(decodeErr).Msg("JSON unmarshalling failed")
return queryInfo, decodeErr
}
Expand Down

0 comments on commit a334d92

Please sign in to comment.