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

Problem: These deleted functions are defined lower in this function. … #115

Merged
merged 1 commit into from
Nov 17, 2018

Conversation

kf6nux
Copy link

@kf6nux kf6nux commented Nov 17, 2018

… This will cause confusion if/when a developer later tries to alter the behavior of one of these functions.

Solution: Delete the unused definitions.

…This will cause confusion if/when a developer later tries to alter the behavior of one of these functions.

Solution: Delete the unused definitions.
userEmail = (user) ->
user.pagerdutyEmail || user.email_address || user.profile?.email || process.env.HUBOT_PAGERDUTY_TEST_EMAIL

campfireUserToPagerDutyUser = (msg, user, required, cb) ->
Copy link
Member

Choose a reason for hiding this comment

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

There appears to still be calls to this method in particular on L758.

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

This PR is deleting duplicate definitions. It does not delete any function definition that hasn't been re-defined below it.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@stephenyeargin stephenyeargin merged commit 1b6891f into hubot-archive:master Nov 17, 2018
@kf6nux kf6nux deleted the delete-dead-code branch November 17, 2018 21:49
@stephenyeargin
Copy link
Member

Released with v3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants