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

Replace terniary null checks with coalescing. #19222

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

pchote
Copy link
Member

@pchote pchote commented Mar 7, 2021

Continuing with the theme of syntax updates. This contains a mix of automated fixups (no behaviour changes) and some manual changes where we introduce harmless or wanted behaviour changes in cases like tooltip != null ? tooltip.Name : armyUnit.ActorInfo.Nametooltip?.Name ?? armyUnit.ActorInfo.Name which now fall back to the ActorInfo if tooltip was valid but tooltip.Name returned null.

@pchote pchote requested review from penev92 and teinarss March 7, 2021 19:18
penev92
penev92 previously approved these changes Mar 7, 2021
OpenRA.Mods.Common/Traits/Conditions/ExternalCondition.cs Outdated Show resolved Hide resolved
@pchote
Copy link
Member Author

pchote commented Mar 7, 2021

Updated.

@teinarss teinarss merged commit d52ba83 into OpenRA:bleed Mar 8, 2021
@pchote pchote deleted the more-null-coalescing branch April 8, 2021 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants