Skip to content
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

Convert isset ternary to null coalescing operator #39224

Merged

Conversation

shdehnavi
Copy link
Contributor

@shdehnavi shdehnavi commented Jul 7, 2023

Summary

This PR aims to enhance code readability and simplify ternary operations in the codebase. It replaces all instances of isset ternary operations with the more concise and expressive null coalescing operator in /lib/private namespace. The conversion eliminates unnecessary redundancy and improves maintainability.

Checklist

@solracsf solracsf added this to the Nextcloud 28 milestone Jul 9, 2023
@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 9, 2023
@juliushaertl juliushaertl requested review from a team, ArtificialOwl, icewind1991 and Fenn-CS and removed request for a team July 10, 2023 16:37
Copy link
Member

@fsamapoor fsamapoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner, Thanks!

@fsamapoor fsamapoor force-pushed the null_coalescing_conversion_lib_private branch from 3f7ae91 to 6c91a2a Compare September 27, 2023 06:39
@Fenn-CS
Copy link
Contributor

Fenn-CS commented Sep 28, 2023

@shdehnavi please fix conflicts and rebase. Thank you!

Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
@shdehnavi shdehnavi force-pushed the null_coalescing_conversion_lib_private branch from 6c91a2a to ea06cf2 Compare September 28, 2023 14:14
@shdehnavi
Copy link
Contributor Author

@shdehnavi please fix conflicts and rebase. Thank you!

Resolved and Rebased.

@Fenn-CS Fenn-CS merged commit db6a53b into nextcloud:master Sep 29, 2023
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants