too much nesting

This commit is contained in:
Florian Dold 2020-07-30 00:18:42 +05:30
parent 899a73ca78
commit 78718d3534
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -258,17 +258,10 @@ export function installAndroidWalletListener(): void {
console.log(`android listener: got request for ${operation} (${id})`);
try {
const result = await handler.handleMessage(operation, id, msg.args);
const respMsg = await handler.handleMessage(operation, id, msg.args);
console.log(
`android listener: sending success response for ${operation} (${id})`,
);
const respMsg = {
type: "response",
id,
operation,
isError: false,
result,
};
sendMessage(JSON.stringify(respMsg));
} catch (e) {
const respMsg = {