Skip to content

Commit

Permalink
remove unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Oct 23, 2019
1 parent 0f1206b commit 136b9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ Crypto.prototype.requestVerificationDM = async function(userId, roomId, methods)
}

let eventId = undefined;
const listenPromise = new Promise(async (_resolve, _reject) => {
const listenPromise = new Promise((_resolve, _reject) => {
const listener = (event) => {
// listen for events related to this verification
if (event.getRoomId() !== roomId
Expand Down

0 comments on commit 136b9c0

Please sign in to comment.