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

Clean up hook methods #751

Merged
merged 2 commits into from
Jan 2, 2021
Merged

Clean up hook methods #751

merged 2 commits into from
Jan 2, 2021

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Nov 28, 2020

Summary

Clean up hook methods

Details

  • Use separate methods for defining and running hooks
  • Remove unused methods for checking if hooks are defined

Motivation and Context

Makes the hook methods more robust by making them require the arguments
needed for the narrower context in which each of them is used.
Simplifies the code in the hook methods by having to deal with fewer
cases.

How Has This Been Tested?

Running the tests.

Types of changes

  • Refactoring (cleanup of codebase without changing any existing functionality)

@mvz mvz marked this pull request as draft November 28, 2020 13:22
@mvz mvz marked this pull request as ready for review January 2, 2021 11:25
- Use separate methods for defining and running hooks
- Remove unused methods for checking if hooks are defined
@mvz mvz merged commit 5fe8a10 into master Jan 2, 2021
@mvz mvz deleted the clean-up-hook-methods branch January 2, 2021 13:32
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.

1 participant