Skip to content

Conversation

@mattleibow
Copy link
Member

Description of Change

Make the formatter not crash: dotnet/roslyn#79338

Copilot AI review requested due to automatic review settings July 11, 2025 18:48
@mattleibow mattleibow requested a review from a team as a code owner July 11, 2025 18:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a dotnet format crash issue by simplifying null-conditional expressions in ListView renderers. The change replaces verbose null checking with more concise null-conditional operators to prevent formatter crashes.

  • Simplifies null-conditional expressions using the ?. operator
  • Fixes dotnet format crash issue referenced in Roslyn issue #79338

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs Replaced explicit null check with null-conditional operator in UpdateSpinnerColor method
src/Compatibility/Core/src/iOS/Renderers/ListViewRenderer.cs Applied same null-conditional operator simplification in corresponding renderer

@mattleibow mattleibow merged commit 7d232dc into main Jul 11, 2025
1 of 5 checks passed
@mattleibow mattleibow deleted the dev/fix-main branch July 11, 2025 18:49
@mattleibow
Copy link
Member Author

/backport to inflight/current

@github-actions
Copy link
Contributor

Started backporting to inflight/current: https://github.com/dotnet/maui/actions/runs/16227488238

@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2025
@PureWeen PureWeen added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Aug 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants