Skip to content

Missing return statement in BaseApp.Query #13040

Closed
@denight

Description

Summary of Bug

Looks like the return statement is missing from BaseApp.Query.

path := splitPath(req.Path)
if len(path) == 0 {
	sdkerrors.QueryResultWithDebug(sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "no query path provided"), app.trace)
}

https://github.com/cosmos/cosmos-sdk/blob/v0.45.7/baseapp/abci.go#L426
https://github.com/cosmos/cosmos-sdk/blob/v0.46.1/baseapp/abci.go#L410

Version

0.45.7, 0.46.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions