From 261d595529b1f1d7b5a8f6937353650a67aebdaf Mon Sep 17 00:00:00 2001 From: 3eyedraga Date: Wed, 8 Nov 2023 17:28:01 +0530 Subject: [PATCH] go fumped --- x/reward/keeper/query_reward.go | 1 - x/reward/types/ticket.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/x/reward/keeper/query_reward.go b/x/reward/keeper/query_reward.go index 1274c5cb..74da9ff3 100644 --- a/x/reward/keeper/query_reward.go +++ b/x/reward/keeper/query_reward.go @@ -102,7 +102,6 @@ func (k Keeper) RewardsByAddressAndCategory(goCtx context.Context, req *types.Qu rewards = append(rewards, reward) return nil }) - if err != nil { return nil, status.Error(codes.Internal, err.Error()) } diff --git a/x/reward/types/ticket.go b/x/reward/types/ticket.go index 6543b5a2..ed51107c 100644 --- a/x/reward/types/ticket.go +++ b/x/reward/types/ticket.go @@ -46,7 +46,7 @@ func (payload *CreateCampaignPayload) Validate(blockTime uint64) error { } func (payload *CreateCampaignPayload) validateRewardCategory() error { - var err = errors.New("reward category is not compatible with reward type") + err := errors.New("reward category is not compatible with reward type") switch payload.Category { case RewardCategory_REWARD_CATEGORY_SIGNUP: if payload.RewardType != RewardType_REWARD_TYPE_SIGNUP &&