Skip to content

Commit

Permalink
test: remove nolint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybxyz committed Sep 24, 2021
1 parent cb3635c commit 67d3397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x/farming/keeper/proposal_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (k Keeper) UpdatePublicPlanProposal(ctx sdk.Context, proposals []*types.Upd
if p.EpochAmount.IsAllPositive() {
if p.GetName() != "" {
if err := plan.SetName(p.GetName()); err != nil {
return err // nolint:errcheck
return err
}
}

Expand Down Expand Up @@ -174,7 +174,7 @@ func (k Keeper) UpdatePublicPlanProposal(ctx sdk.Context, proposals []*types.Upd
} else if p.EpochRatio.IsPositive() {
if p.GetName() != "" {
if err := plan.SetName(p.GetName()); err != nil {
return err // nolint:errcheck
return err
}
}

Expand Down
3 changes: 0 additions & 3 deletions x/farming/types/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (p PublicPlanProposal) String() string {
}

// NewAddRequestProposal creates a new AddRequestProposal object
// nolint:interfacer
func NewAddRequestProposal(
name string,
farmingPoolAddr string,
Expand Down Expand Up @@ -141,7 +140,6 @@ func (p *AddRequestProposal) Validate() error {
}

// NewUpdateRequestProposal creates a new UpdateRequestProposal object.
// nolint:interfacer
func NewUpdateRequestProposal(
id uint64,
name string,
Expand Down Expand Up @@ -201,7 +199,6 @@ func (p *UpdateRequestProposal) Validate() error {
}

// NewDeleteRequestProposal creates a new DeleteRequestProposal object.
// nolint:interfacer
func NewDeleteRequestProposal(id uint64) *DeleteRequestProposal {
return &DeleteRequestProposal{
PlanId: id,
Expand Down

0 comments on commit 67d3397

Please sign in to comment.