diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-19 19:34:19 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-19 19:34:19 +0300 |
commit | a69e69643f51a97753bf593777461bdce0b63df2 (patch) | |
tree | 3e8b7e5be10c67823cc74be5d3290b9ec8eb0de9 | |
parent | 0d84b5161170baf6fc2353f3f8e850aae036bf52 (diff) | |
download | which-ui-a69e69643f51a97753bf593777461bdce0b63df2.tar.gz |
fix: resolve eslint errors
-rw-r--r-- | src/hooks/useS3Preupload.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
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<Blob> => { 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 }); }); }; |