-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Refactoring #2662
Refactoring #2662
Conversation
This commit extracts multiple conditions in the if statement into separate variables for improved readability and maintainability.
This commit replaces the commented code with a call to the checkState() method for better readability and consistency in the codebase.
This commit refactors the like() method by extracting the logic for creating a ProxyResponseDefinitionBuilder into a separate method for better readability and maintainability of the codebase.
@@ -71,6 +71,9 @@ public static ResponseDefinitionBuilder like(ResponseDefinition responseDefiniti | |||
builder.wasConfigured = responseDefinition.isFromConfiguredStub(); | |||
|
|||
if (builder.proxyBaseUrl != null) { | |||
<<<<<<< HEAD | |||
return createProxyResponseDefinitionBuilder(builder, responseDefinition); | |||
======= |
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.
This is breaking the code
Hi @Shivang-X This PR looks like it has some of the same changes as your previous PR - #2647 It would be great if you could address the comments in the previous PR and then we can get that merged and closed off instead of adding the same changes to this PR |
Hi @Shivang-X I am just checking in on this PR to see if you are planning on moving it forwards to the point where we can merge it? No worries if not, I just wanted to check as we close PRs after a period of inactivity. Let me know your thoughts |
Closing due to inactivity and duplication across a different PR. |
For my current university course assignment, I need to improve the code by cleaning it up and making it easier to understand and modify (refactoring) whenever it's appropriate. And below mentioned are all refactoring.
Commit 1:
Performed "Replace condition with polymorphism" refactorng.
Commit 2:
Applied "Move method" refactoring.
Commit 3:
Performed "Extract Class" refactoring.
References
Submitter checklist
#help-contributing
or a project-specific channel like#wiremock-java