Skip to content

Commit

Permalink
remove extra else
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Nov 18, 2023
1 parent 4bf4853 commit eb453de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toGamut.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function toGamutCSS (origin, { space = origin.space }) {
if (min_inGamut && inGamut(current, space)) {
min = chroma;
}
else if (!inGamut(current, space)) {
else {
clipped = clip(current);
E = deltaEOK(clipped, current);
if (E < JND) {
Expand Down

0 comments on commit eb453de

Please sign in to comment.