Skip to content

Commit

Permalink
chore: remove repetitive words (#1869) (#1873)
Browse files Browse the repository at this point in the history
Signed-off-by: frameflare <yangzenghua@outlook.com>
(cherry picked from commit 41b79e4)

Co-authored-by: frameflare <166090836+frameflare@users.noreply.github.com>
  • Loading branch information
mergify[bot] and frameflare committed Apr 5, 2024
1 parent 32a0193 commit 667e532
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/committee/spec/05_params.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 1 addition & 1 deletion x/incentive/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
12 changes: 6 additions & 6 deletions x/incentive/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 667e532

Please sign in to comment.