-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
Hi @moetazbrayek1, thanks for the PR. it seems the build fails with typescript types errors. Please take a look: |
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 |
Fixed the typing issue. Could you check now? |
@rametta you can check now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Refactor: Simplify makeRequestsPropertyAssignment Function
This PR refactors the
makeRequestsPropertyAssignment
function to use a loop over HTTP methods, reducing repetitiveif
statements and improving code maintainability. The functionality remains unchanged, ensuring backward compatibility. Unit tests have been checked to confirm they pass with the refactor.