aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-19 19:34:19 +0300
committereug-vs <eug-vs@keemail.me>2020-08-19 19:34:19 +0300
commita69e69643f51a97753bf593777461bdce0b63df2 (patch)
tree3e8b7e5be10c67823cc74be5d3290b9ec8eb0de9 /src
parent0d84b5161170baf6fc2353f3f8e850aae036bf52 (diff)
downloadwhich-ui-a69e69643f51a97753bf593777461bdce0b63df2.tar.gz
fix: resolve eslint errors
Diffstat (limited to 'src')
-rw-r--r--src/hooks/useS3Preupload.tsx5
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
});
});
};