-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Created BaseEffector class and different methods inherits from it #328
Conversation
Added BaseEffector class inorder to remove the duplicate code.Apart from it all the specific classes AllowOverrideEffector, DenyOverrideEffector, AllowAndDenyEffector, and PriorityEffector) inherits from BaseEffector.
Update default_effectors.py
@Nekotoxin please review |
@Akshat111111 plz fix CI: |
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.
Although it inherits BaseEffector, it is not reused anywhere. So what is this change intended to solve?
Good point, closed for now |
But its reducing the complexity and enhancing the performance as well as readability. |
Yeah I am working on it. |
@Akshat111111 work on exsiting issues, they are more meaningful. Don't create trivial problem by yourself and resolve it just to be a contributor |
Sure I will work on it,But this change I thought will make the code better that's why made this changes. |
@Akshat111111 We normally don't accept trivial PRs and don't want to encourage people to do so |
I understand it, and will now work on the present issues only. |
Added BaseEffector class inorder to remove the duplicate code.Apart from it all the specific classes AllowOverrideEffector, DenyOverrideEffector, AllowAndDenyEffector, and PriorityEffector) inherits from BaseEffector.