Closed Kabilesh020799 closed 1 year ago
Hello, thank you very much for reviewing the code and taking the time to submit a PR.
In this case though I think that the refactoring doesn't solve the issue of having multiple ifs and requires more code, making the code a little more complex/harder to maintain. So I will reject this PR.
I really appreciate that you sent the PR and are interested on finding ways to improve the code and tool. Thank you and keep looking for places to improve!
I found a code smell that had multiple conditions in if and refactored it using polymorphism which improved the code quality. I would request you to merge this pr if you find this useful and makes sense. Thanks