Skip to content

Commit 9ee155c

Browse files
romainmenkesvgeesus
authored andcommitted
[css-color-4] fix typo in conversions.js
1 parent 845c5f4 commit 9ee155c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-color-4/conversions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function rectangular_un_premultiply(color, alpha) {
462462
// given a premultiplied color in a rectangular orthogonal colorspace
463463
// and an alpha value
464464
// return the actual color
465-
if (alpha = 0) {
465+
if (alpha === 0) {
466466
return color; // avoid divide by zero
467467
}
468468
return color.map((c) => c / alpha)
@@ -494,4 +494,4 @@ function polar_un_premultiply(color, alpha, hueIndex) {
494494
// Convenience functions can easily be defined, such as
495495
function hsl_premultiply(color, alpha) {
496496
return polar_premultiply(color, alpha, 0);
497-
}
497+
}

0 commit comments

Comments
 (0)