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

(refactor) Simplify Chain's handle method #593

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grigoriosgiann
Copy link

Simplify Chain's handle method, by using iter and fold on the
BeforeMiddleware and AfterMiddleware and and_then on the intermediate
result.

As a result the 6 functions that were previously used are now unneeded
and the code is therefore shorter, cleaner and more concise.

Simplify Chain's handle method, by using iter and fold on the
BeforeMiddleware and AfterMiddleware and and_then on the intermediate
result.
@phlmn phlmn self-requested a review October 21, 2018 21:26
Copy link
Member

@phlmn phlmn left a comment

Choose a reason for hiding this comment

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

Wow! That looks clean! 😍

@phlmn phlmn requested a review from zgtm October 21, 2018 21:33
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.

None yet

2 participants