Skip to content

Commit

Permalink
go fumped
Browse files Browse the repository at this point in the history
  • Loading branch information
3eyedraga committed Nov 8, 2023
1 parent bd2e4df commit 261d595
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion x/reward/keeper/query_reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion x/reward/types/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 261d595

Please sign in to comment.