Skip to content

Commit cd2a4cc

Browse files
romainmenkeChris Lilley
authored andcommitted
fix one more typo
1 parent 9ee155c commit cd2a4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-color-4/conversions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function polar_un_premultiply(color, alpha, hueIndex) {
485485
// the hueIndex says which entry in the color array corresponds to hue angle
486486
// for example, in OKLCH it would be 2
487487
// while in HSL it would be 0
488-
if (alpha = 0) {
488+
if (alpha === 0) {
489489
return color; // avoid divide by zero
490490
}
491491
return color.map((c, i) => c / (hueIndex === i? 1 : alpha))

0 commit comments

Comments
 (0)