refactor: fix lint issues + gofumpt (#15062)
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user