Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 4c0c67f

Browse files
authored
fix: unhandledpromiserejection in electron tests (#3146)
When this method is async (without any actual async work) the 'should fail to publish if does not receive private key' test experiences an UnhandledPromiseRejection in electron, though the test still passes.
1 parent 4309e10 commit 4c0c67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ipfs/src/core/ipns/publisher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class IpnsPublisher {
3232
}
3333

3434
// Accepts a keypair, as well as a value (ipfsPath), and publishes it out to the routing system
35-
async publish (privKey, value) { // eslint-disable-line require-await
35+
publish (privKey, value) {
3636
return this.publishWithEOL(privKey, value, defaultRecordLifetime)
3737
}
3838

0 commit comments

Comments
 (0)