diff --git a/frontend/src/fileReceiver.js b/frontend/src/fileReceiver.js index 3a4931da..6eb7c3fc 100644 --- a/frontend/src/fileReceiver.js +++ b/frontend/src/fileReceiver.js @@ -92,9 +92,7 @@ class FileReceiver extends EventEmitter { const integrity = new Uint8Array(calculatedHash).toString() === proposedHash.toString(); if (!integrity) { this.emit('unsafe', true) - return new Promise((resolve, reject) => { - reject(); - }) + return Promise.reject(); } else { this.emit('safe', true); return Promise.all([