diff --git a/src/utils/colorUtil.ts b/src/utils/colorUtil.ts index 5d23107f34..162f30052f 100644 --- a/src/utils/colorUtil.ts +++ b/src/utils/colorUtil.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { memoize } from 'lodash' type RGB = { r: number; g: number; b: number } @@ -34,8 +35,6 @@ function rgbToHsl({ r, g, b }: RGB): HSL { case b: h = (r - g) / d + 4 break - default: - throw new Error('NOT_REACHED') } h /= 6 }