From 8e4cb217bbf35f4596467d158b7c3d35fd071373 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 5 May 2025 14:29:00 +0200 Subject: [PATCH] Fix with eslint --- src/color-thief.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/color-thief.ts b/src/color-thief.ts index f3fc1a3..30cbf94 100644 --- a/src/color-thief.ts +++ b/src/color-thief.ts @@ -47,7 +47,7 @@ class CanvasImage { this.width = this.canvas.width; this.height = this.canvas.height; } else { - throw new Error("One of the two constructor arguments needed"); + throw new Error( 'One of the two constructor arguments needed' ); } } @@ -213,7 +213,7 @@ class ColorThief { } ); sourceImage.src = imageData; } ); - }; + } /** * Get the dominant color of an image from an image URL promise-based. Replaces getColorFromUrl @@ -238,7 +238,7 @@ class ColorThief { reject( e ); } ); } ); - }; + } } export default ColorThief;