Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
:art: Shortened last three methods in color class #15785
Used the ternary operator to shorten the last three methods in color.js
Description of the Change
This was a small refactoring to shorten the last three methods in the color class.
Why Should This Be In Core?
It doesn't sacrifice clarity, but just reduces unnecessary sizeof code.
Possibly readability, although that shouldn't be too big an issue.