From 6725cf3af30a0788c7119c97ab16b2d893c87a8b Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 12 Sep 2021 10:41:57 -0400 Subject: Remove inaccessible code branch --- src/formats.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/formats.ts') diff --git a/src/formats.ts b/src/formats.ts index 7638399..ab118ab 100644 --- a/src/formats.ts +++ b/src/formats.ts @@ -38,8 +38,7 @@ export const defaultColorMatches = ( 16 + 76 : 225 + Math.floor(coverage / (style.stage2 / 11)); - const result = gradient.toString(16); - return (result.length === 1 ? "0" : "") + result + "1"; + return gradient.toString(16) + "1"; }; const FormatsObj: FormatObj = { -- cgit