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 makeRequestsPropertyAssignment to use loop over HTTP methods #46

Merged
merged 8 commits into from
Jan 1, 2024

Conversation

moetazbrayek1
Copy link
Contributor

Refactor: Simplify makeRequestsPropertyAssignment Function

This PR refactors the makeRequestsPropertyAssignment function to use a loop over HTTP methods, reducing repetitive if statements and improving code maintainability. The functionality remains unchanged, ensuring backward compatibility. Unit tests have been checked to confirm they pass with the refactor.

@rametta
Copy link
Owner

rametta commented Nov 27, 2023

Hi @moetazbrayek1, thanks for the PR. it seems the build fails with typescript types errors. Please take a look:
image

@moetazbrayek1
Copy link
Contributor Author

okay let me double check the tests

@rametta
Copy link
Owner

rametta commented Nov 28, 2023

okay let me double check the tests

Just to clarify, it is not the tests failing, it is the build/compilation of typescript failing because of type mismatches

@moetazbrayek1
Copy link
Contributor Author

Fixed the typing issue. Could you check now?

@moetazbrayek1
Copy link
Contributor Author

@rametta you can check now

Copy link
Owner

@rametta rametta 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, thanks!

@rametta rametta merged commit 2378a4b into rametta:main Jan 1, 2024
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