From eb453de0caedee46302262da863bbbb4f1c5747c Mon Sep 17 00:00:00 2001 From: Jonny Gerig Meyer Date: Fri, 17 Nov 2023 21:51:52 -0500 Subject: [PATCH] remove extra else --- src/toGamut.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toGamut.js b/src/toGamut.js index eaff3f754..2902cbe3d 100644 --- a/src/toGamut.js +++ b/src/toGamut.js @@ -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) {