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

allow to chain nil value decorator #431

Merged
merged 2 commits into from
Mar 22, 2019
Merged

Conversation

husio
Copy link
Contributor

@husio husio commented Mar 21, 2019

For ease of configuration allow to pass a nil value decorator to the
decorator chain builder. Nil decorator must be ignored.

resolve #414

For ease of configuration allow to pass a nil value decorator to the
decorator chain builder. Nil decorator must be ignored.

resolve #414
@husio husio requested a review from ethanfrey March 21, 2019 16:11
@husio husio requested a review from alpe as a code owner March 21, 2019 16:11
@codecov-io

This comment has been minimized.

Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Very nice and clean.

Can you add one more test for cutoffNil to make it complete?

app/chain.go Show resolved Hide resolved
app/chain_test.go Show resolved Hide resolved
@husio husio merged commit 802e3d9 into master Mar 22, 2019
@husio husio deleted the allow_chain_nil_decorator_issue_414 branch March 22, 2019 08:44
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.

Allow app.ChainDecorators to accept nil
3 participants