From 0067669450f9145a26b7920b03aea28983be8a1d Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Mon, 6 Nov 2023 15:08:52 -0600 Subject: [PATCH] fix: don't use naked return type --- modules/async-icq/keeper/params.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/async-icq/keeper/params.go b/modules/async-icq/keeper/params.go index 7362e7f0..d3546cb3 100644 --- a/modules/async-icq/keeper/params.go +++ b/modules/async-icq/keeper/params.go @@ -30,7 +30,9 @@ func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error { } // GetParams returns the current module parameters. -func (k Keeper) GetParams(ctx sdk.Context) (p types.Params) { +func (k Keeper) GetParams(ctx sdk.Context) types.Params { + var p types.Params + store := ctx.KVStore(k.storeKey) bz := store.Get(types.ParamsKey) if bz == nil {