refactor: fix lint issues + gofumpt (#15062)

This commit is contained in:
Facundo Medica
2023-02-19 10:31:49 +00:00
committed by GitHub
parent 2b484a241f
commit 4a6a1e3cb8
234 changed files with 1249 additions and 1077 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import (
"github.com/cosmos/gogoproto/proto"
errorsmod "cosmossdk.io/errors"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
@@ -58,7 +60,7 @@ type Any struct {
// unmarshaling
func NewAnyWithValue(v proto.Message) (*Any, error) {
if v == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrPackAny, "Expecting non nil value to create a new Any")
return nil, errorsmod.Wrap(sdkerrors.ErrPackAny, "Expecting non nil value to create a new Any")
}
bz, err := proto.Marshal(v)