Remove catch() block
This commit is contained in:
parent
42ef0facc9
commit
8d1baca60e
@ -46,10 +46,6 @@ class FileSender extends EventEmitter {
|
|||||||
},
|
},
|
||||||
true,
|
true,
|
||||||
['encrypt', 'decrypt']
|
['encrypt', 'decrypt']
|
||||||
)
|
|
||||||
.catch(err =>
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('There was an error generating a crypto key')
|
|
||||||
),
|
),
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
|
Loading…
Reference in New Issue
Block a user