-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 userـldap app commands #39928
Refactor userـldap app commands #39928
Conversation
2a9e9a7
to
9215858
Compare
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 like some void-annotated methods do actually return values?
Hello @fenn-cs, Thank you for reviewing the PR. No method with the return type of These two lines do not belong to the same method: Here is the expanded diff: |
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.
Thanks Faraz!
9215858
to
e46d750
Compare
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.
I’m not sure why there is so much hate towards else
statements, I find things clearer with them that without. Especially the continue
in the loop instead of a simple else
looks convoluted.
I like the strong typing, constructor promotion and constant usage in returns though.
Please revert at least the match (true)
.
e46d750
to
b7e19af
Compare
Thank you for taking the time to review the changes Come. This was one of my older PRs and I appreciate your suggestions. |
b7e19af
to
30c0567
Compare
2785151
to
46e2cef
Compare
46e2cef
to
eca25b4
Compare
To improve code readability. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
eca25b4
to
e6a4ebc
Compare
Summary
I have made some adjustments to the
apps/user_ldap/lib/Command
classes to improve the code readability.The improvements in this PR include but are not limited to:
Checklist