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 #39226

Merged

Conversation

shdehnavi
Copy link
Contributor

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 /tests/ namespace. The conversion eliminates unnecessary redundancy and improves maintainability.

Checklist

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 21, 2023
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
@susnux susnux force-pushed the null_coalescing_conversion_tests branch from 9e790eb to 271e63e Compare August 16, 2023 23:36
@shdehnavi shdehnavi requested a review from blizzz August 29, 2023 12:45
@juliushaertl juliushaertl merged commit 938a558 into nextcloud:master Sep 9, 2023
37 of 40 checks passed
@shdehnavi shdehnavi deleted the null_coalescing_conversion_tests branch September 28, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants