diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index 404e7f47fc9c..f0b4426c7f3f 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -18,12 +18,11 @@ import ( // SubmitProposal creates a new proposal given an array of messages func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, metadata, title, summary string, proposer sdk.AccAddress, expedited bool) (v1.Proposal, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) - -// This method checks that all message metadata, summary and title -// has te expected length defined in the module configuration. + // This method checks that all message metadata, summary and title + // has te expected length defined in the module configuration. if err := keeper.validateProposalLengths(metadata, title, summary); err != nil { - return v1.Proposal{}, err + return v1.Proposal{}, err } // Will hold a comma-separated string of all Msg type URLs.