mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-02-20 18:54:37 +00:00
Fix UnhandledPromiseRejectionWarnings in Node.js
These were introduced in 9bdeaa9 by `await`ing Promises later than
they're created.
This commit is contained in:
@@ -313,6 +313,7 @@ function dearmor(input) {
|
||||
}));
|
||||
data = stream.transformPair(data, async (readable, writable) => {
|
||||
const checksumVerified = stream.readToEnd(getCheckSum(stream.passiveClone(readable)));
|
||||
checksumVerified.catch(() => {});
|
||||
await stream.pipe(readable, writable, {
|
||||
preventClose: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user