From 667e532aaafaab216d874ff670fb299d9b951375 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 07:27:10 -0700 Subject: [PATCH] chore: remove repetitive words (#1869) (#1873) Signed-off-by: frameflare (cherry picked from commit 41b79e44afceaaa0bb7fc9c2472c10bc3baa9a37) Co-authored-by: frameflare <166090836+frameflare@users.noreply.github.com> --- client/rest/rest.go | 2 +- x/committee/spec/05_params.md | 2 +- x/incentive/client/cli/query.go | 2 +- x/incentive/keeper/keeper.go | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/rest/rest.go b/client/rest/rest.go index d4373205..30255bbd 100644 --- a/client/rest/rest.go +++ b/client/rest/rest.go @@ -132,7 +132,7 @@ func (br BaseReq) ValidateBasic(w http.ResponseWriter) bool { return true } -// ReadRESTReq reads and unmarshals a Request's body to the the BaseReq struct. +// ReadRESTReq reads and unmarshals a Request's body to the BaseReq struct. // Writes an error response to ResponseWriter and returns false if errors occurred. func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.LegacyAmino, req interface{}) bool { body, err := io.ReadAll(r.Body) diff --git a/x/committee/spec/05_params.md b/x/committee/spec/05_params.md index 27c8df37..681e4ad9 100644 --- a/x/committee/spec/05_params.md +++ b/x/committee/spec/05_params.md @@ -4,4 +4,4 @@ order: 5 # Parameters -The committee module has no parameters. Committees are created using the `x/gov` module and and inherit the parameters controlling governance proposals from `x/gov`. +The committee module has no parameters. Committees are created using the `x/gov` module and inherit the parameters controlling governance proposals from `x/gov`. diff --git a/x/incentive/client/cli/query.go b/x/incentive/client/cli/query.go index 96bc7526..7da9c075 100644 --- a/x/incentive/client/cli/query.go +++ b/x/incentive/client/cli/query.go @@ -111,7 +111,7 @@ func queryRewardsCmd() *cobra.Command { cmd.Flags().String(flagOwner, "", "(optional) filter by owner address") cmd.Flags().String(flagType, "", fmt.Sprintf("(optional) filter by a reward type: %s", strings.Join(rewardTypes, "|"))) cmd.Flags().Bool(flagUnsynced, false, "(optional) get unsynced claims") - cmd.Flags().Int(flags.FlagPage, 1, "pagination page rewards of to to query for") + cmd.Flags().Int(flags.FlagPage, 1, "pagination page rewards of to query for") cmd.Flags().Int(flags.FlagLimit, 100, "pagination limit of rewards to query for") return cmd } diff --git a/x/incentive/keeper/keeper.go b/x/incentive/keeper/keeper.go index 8571aa86..07707676 100644 --- a/x/incentive/keeper/keeper.go +++ b/x/incentive/keeper/keeper.go @@ -63,7 +63,7 @@ func NewKeeper( } } -// GetUSDXMintingClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found +// GetUSDXMintingClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found func (k Keeper) GetUSDXMintingClaim(ctx sdk.Context, addr sdk.AccAddress) (types.USDXMintingClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.USDXMintingClaimKeyPrefix) bz := store.Get(addr) @@ -191,7 +191,7 @@ func (k Keeper) IterateUSDXMintingRewardFactors(ctx sdk.Context, cb func(denom s } } -// GetHardLiquidityProviderClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found +// GetHardLiquidityProviderClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found func (k Keeper) GetHardLiquidityProviderClaim(ctx sdk.Context, addr sdk.AccAddress) (types.HardLiquidityProviderClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.HardLiquidityClaimKeyPrefix) bz := store.Get(addr) @@ -240,7 +240,7 @@ func (k Keeper) GetAllHardLiquidityProviderClaims(ctx sdk.Context) types.HardLiq return cs } -// GetDelegatorClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found +// GetDelegatorClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found func (k Keeper) GetDelegatorClaim(ctx sdk.Context, addr sdk.AccAddress) (types.DelegatorClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.DelegatorClaimKeyPrefix) bz := store.Get(addr) @@ -289,7 +289,7 @@ func (k Keeper) GetAllDelegatorClaims(ctx sdk.Context) types.DelegatorClaims { return cs } -// GetSwapClaim returns the claim in the store corresponding the the input address. +// GetSwapClaim returns the claim in the store corresponding the input address. func (k Keeper) GetSwapClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SwapClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.SwapClaimKeyPrefix) bz := store.Get(addr) @@ -338,7 +338,7 @@ func (k Keeper) GetAllSwapClaims(ctx sdk.Context) types.SwapClaims { return cs } -// GetSavingsClaim returns the claim in the store corresponding the the input address. +// GetSavingsClaim returns the claim in the store corresponding the input address. func (k Keeper) GetSavingsClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SavingsClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.SavingsClaimKeyPrefix) bz := store.Get(addr) @@ -387,7 +387,7 @@ func (k Keeper) GetAllSavingsClaims(ctx sdk.Context) types.SavingsClaims { return cs } -// GetEarnClaim returns the claim in the store corresponding the the input address. +// GetEarnClaim returns the claim in the store corresponding the input address. func (k Keeper) GetEarnClaim(ctx sdk.Context, addr sdk.AccAddress) (types.EarnClaim, bool) { store := prefix.NewStore(ctx.KVStore(k.key), types.EarnClaimKeyPrefix) bz := store.Get(addr)