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

Handle non-existing JBColor key #172

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Handle non-existing JBColor key #172

merged 2 commits into from
Oct 12, 2023

Conversation

Walingar
Copy link
Collaborator

Previous solution with FallbackColor didn't work since JBColor.namedColor always returns new instance and equals inside FallbackColor will return false in all cases

@Walingar Walingar requested a review from rock3r October 12, 2023 09:54
Copy link
Collaborator

@rock3r rock3r left a comment

Choose a reason for hiding this comment

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

It's arguably not a "better" way to do it than what we have now, and I agree it should be fixed in the platform, but I don't have anything against putting this in

@Walingar
Copy link
Collaborator Author

@rock3r as I written in PR description current solution just do nothing, because equals always will return false.

@rock3r
Copy link
Collaborator

rock3r commented Oct 12, 2023

Ah, I misread, sorry!

@rock3r rock3r enabled auto-merge (squash) October 12, 2023 13:48
@rock3r rock3r merged commit e718267 into main Oct 12, 2023
9 of 10 checks passed
@rock3r rock3r deleted the nr/jbcolor-marker branch October 12, 2023 14:05
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