Skip to content

Commit

Permalink
modify returned err variable to avoid conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
secret2830 committed Jun 5, 2019
1 parent 725031f commit 5040b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/v1/asset/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func queryGateway(ctx sdk.Context, req abci.RequestQuery, keeper Keeper) ([]byte
return nil, sdk.ParseParamsErr(err)
}

gateway, err := keeper.GetGatewayByMoniker(ctx, params.Moniker)
gateway, err2 := keeper.GetGatewayByMoniker(ctx, params.Moniker)
if err != nil {
return nil, err
return nil, err2
}

bz, err := codec.MarshalJSONIndent(keeper.cdc, gateway)
Expand Down

0 comments on commit 5040b13

Please sign in to comment.