Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: lint fixes #356

Merged
merged 5 commits into from
Mar 24, 2023
Merged

chore: lint fixes #356

merged 5 commits into from
Mar 24, 2023

Conversation

aljo242
Copy link

@aljo242 aljo242 commented Mar 21, 2023

1. Summary

Fixes failing lint

2.Type of change

  • Bug fix (non-breaking change which fixes an issue)

3. Implementation details

Golangci-lint action was bumped to v1.52.0 which started complaining about a bunch of code. This PR bumps our version of lint and makes the according changes to fix the lint.

  • unused parameters
  • redundant if-else
  • simplifying if-else statements
  • remove NewHandler functions (not needed anymore).

Ones to check (simplified logic that should be verified):

  • x/interchainstaking/types/redemptions.go
  • x/interchainstaking/keeper/redemptions.go
  • x/interchainstaking/types/rebalance.go

Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure about the NewHandler + Route() removal? I thought this was still used for Amino (ledger) messages?

@joe-bowman
Copy link
Contributor

joe-bowman
joe-bowman previously approved these changes Mar 22, 2023
Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aljo242 aljo242 changed the base branch from main to develop March 22, 2023 21:54
@aljo242 aljo242 dismissed joe-bowman’s stale review March 22, 2023 21:54

The base branch was changed.

@ajansari95 ajansari95 closed this Mar 22, 2023
@aljo242 aljo242 reopened this Mar 23, 2023
@aljo242 aljo242 requested a review from joe-bowman March 23, 2023 12:31
Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@ajansari95 ajansari95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aljo242 aljo242 merged commit 85fc8f7 into develop Mar 24, 2023
@aljo242 aljo242 deleted the chore/lint branch March 24, 2023 12:34
joe-bowman pushed a commit that referenced this pull request Mar 28, 2023
* update lint

* easy fixes

* loop fixes

* review suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants