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: reuse createTextEvent() in createAckEvent() #109

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

francisfuzz
Copy link
Collaborator

What are you trying to accomplish?

A refactoring opportunity: after reading createAckEvent() and createTextEvent's definitions, I noticed that the only difference was that the former passes in an empty string for its content.

What approach did you choose and why?

I chose to update the body to use createTextEvent() directly, passing an empty string for its message argument. Ran tests locally and in CI to verify this works 👍

What should reviewers focus on?

Nothing I haven't mentioned 😉

@francisfuzz francisfuzz self-assigned this Sep 20, 2024
Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Looks good to me! No need to add any tests for internal refactorings

@gr2m gr2m changed the title Reuse createTextEvent() in createAckEvent() refactor: reuse createTextEvent() in createAckEvent() Sep 20, 2024
@francisfuzz francisfuzz marked this pull request as ready for review September 23, 2024 11:56
@francisfuzz francisfuzz merged commit ab12443 into main Sep 23, 2024
5 checks passed
@francisfuzz francisfuzz deleted the refactor-ack branch September 23, 2024 11:56
Copy link

github-actions bot commented Oct 5, 2024

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants