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

x/upgrade: remove alias.go usage #6382

Merged
merged 5 commits into from
Jun 10, 2020
Merged

Conversation

dauTT
Copy link
Contributor

@dauTT dauTT commented Jun 9, 2020

Description

This PR closes a sub task in #6311


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@codecov
Copy link

codecov bot commented Jun 9, 2020

Codecov Report

Merging #6382 into master will increase coverage by 7.55%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master    #6382      +/-   ##
==========================================
+ Coverage   47.95%   55.50%   +7.55%     
==========================================
  Files         216      465     +249     
  Lines       11836    27536   +15700     
==========================================
+ Hits         5676    15284    +9608     
- Misses       5758    11154    +5396     
- Partials      402     1098     +696     

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dauTT

@alexanderbez alexanderbez added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 10, 2020
Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM, one comment only

Comment on lines 25 to 26
upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
Copy link
Collaborator

Choose a reason for hiding this comment

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

When you are on the same module (i.e x/upgrade in this case) you don't need to define the imported packages with the upgrade... prefix

Suggested change
upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
"github.com/cosmos/cosmos-sdk/x/upgrade/types"

@mergify mergify bot merged commit 82afd52 into cosmos:master Jun 10, 2020
@dauTT dauTT deleted the remove-alias-x-upgrade branch June 10, 2020 20:52
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* x/upgrade: remove alias.go usage

* Simplify code

Co-authored-by: Alexander Bezobchuk <[email protected]>
Co-authored-by: Federico Kunze <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:x/upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants