Commit b17dda3c authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Update format based on newer version of prettier (2.2.0)

parent 4e9deac3
......@@ -98,17 +98,18 @@ export default class Bridge {
const p = new Promise(function (resolve, reject) {
const timeout = setTimeout(() => resolve(null), 1000);
try {
return l.channel.call(method, ...Array.from(args), function (
err,
result
) {
return l.channel.call(
method,
...Array.from(args),
function (err, result) {
clearTimeout(timeout);
if (err) {
return reject(err);
} else {
return resolve(result);
}
});
}
);
} catch (error) {
const err = error;
return reject(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment