From a69e69643f51a97753bf593777461bdce0b63df2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 19 Aug 2020 19:34:19 +0300 Subject: fix: resolve eslint errors --- src/hooks/useS3Preupload.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/hooks/useS3Preupload.tsx b/src/hooks/useS3Preupload.tsx index 22f2513..651bfb6 100644 --- a/src/hooks/useS3Preupload.tsx +++ b/src/hooks/useS3Preupload.tsx @@ -20,11 +20,10 @@ interface Hook { const compressFile = (file: File, quality = 0.6): Promise => { return new Promise((resolve, reject) => { - // eslint-disable-next-line no-new - new Compressor(file, { + return new Compressor(file, { success: result => resolve(result), error: err => reject(err), - quality, + quality }); }); }; -- cgit v1.2.3