-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
This is because these setters are intended to be used as options for baseapp.
There was a problem hiding this 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.
baseapp/options.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK -- thanks @ValarDragon 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
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: