Skip to content

Remove redundant apply call#560

Closed
mahozad wants to merge 1 commit intochrisbanes:mainfrom
mahozad:patch-1
Closed

Remove redundant apply call#560
mahozad wants to merge 1 commit intochrisbanes:mainfrom
mahozad:patch-1

Conversation

@mahozad
Copy link

@mahozad mahozad commented Mar 20, 2025

Simplify list.apply { sortBy(HazeArea::zIndex) } to list.sortBy(HazeArea::zIndex).

@chrisbanes chrisbanes enabled auto-merge (squash) March 20, 2025 19:48
@mahozad
Copy link
Author

mahozad commented Mar 22, 2025

The build failed. Seems it was not redundant!

@chrisbanes
Copy link
Owner

Ah yeah, we're sorting on a mutable list so it doesn't return the sorted list. Closing this.

@chrisbanes chrisbanes closed this Mar 22, 2025
auto-merge was automatically disabled March 22, 2025 08:11

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants