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

Eliminate a useless tap() call #8

Merged
merged 1 commit into from
Jul 31, 2015

Conversation

drewdeponte
Copy link
Owner

I eliminated the tap() call in this because the Feature#on method
returns self, which is the instance of the Feature itself.
Therefore, it would be the same as what the tap() call is doing. I
suspect this was done maybe before the on() method returned self.
Either way, now it seems useless to use a tap() call there.

You can see the on() definition return self at the following.

https://github.com/codebreakdown/togls/blob/master/lib/togls/feature.rb#L16

I eliminated the `tap()` call in this because the `Feature#on` method
returns `self`, which is the instance of the `Feature` itself.
Therefore, it would be the same as what the `tap()` call is doing. I
suspect this was done maybe before the `on()` method returned `self`.
Either way, now it seems useless to use a `tap()` call there.
@BRIMIL01
Copy link

👍 merge it

drewdeponte added a commit that referenced this pull request Jul 31, 2015
…ture_registry

Eliminate a useless `tap()` call
@drewdeponte drewdeponte merged commit d48545f into master Jul 31, 2015
@drewdeponte drewdeponte deleted the eliminate_useless_tap_in_feature_registry branch July 31, 2015 17:47
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.

2 participants