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

baseapp: Move code from setters.go to options.go #2382

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

ValarDragon
Copy link
Contributor

This is because these setters are intended to be used as options for baseapp.

No changelog entry as this isn't external facing.


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

This is because these setters are intended to be used as options for baseapp.
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.

Thanks @ValarDragon -- left a minor remark.

@@ -35,3 +37,75 @@ func SetMinimumFees(minFees string) func(*BaseApp) {
}
return func(bap *BaseApp) { bap.SetMinimumFees(fees) }
}

// nolint - Setter functions
func (app *BaseApp) SetName(name string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pretty please add new lines between the function definitions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point of not doing that was to not have to write nolint a ton of times. If you prefer we can still change it, I don't have a preference

Copy link
Contributor

Choose a reason for hiding this comment

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

Just add // nolint to the top of the file then.

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.

utACK -- thanks @ValarDragon 🎉

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

utACK

@cwgoes cwgoes merged commit 145e06b into develop Sep 26, 2018
@cwgoes cwgoes deleted the dev/minor_baseapp_setter_refactor branch September 26, 2018 13:17
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