From d74ed5ab54072cf2a9d30e79237f96b1c6f787d5 Mon Sep 17 00:00:00 2001 From: Fabio Massaioli Date: Tue, 25 Feb 2025 18:09:53 +0100 Subject: [PATCH] Nitpicks --- v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts | 2 +- .../runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts index fce698bf4..11d063323 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts @@ -193,7 +193,7 @@ export function Call(options: CallOptions): CancellablePromise { const cancel = () => { callResponses.delete(id); return cancelCall(CancelMethod, {"call-id": id}).catch((err) => { - console.log("Error while requesting binding call cancellation:", err); + console.error("Error while requesting binding call cancellation:", err); }); }; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js b/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js index e4806b6e0..baf51e3c0 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js @@ -21,7 +21,7 @@ process.on('unhandledRejection', function (reason, promise) { global.context = global.describe = V.describe; global.specify = global.it = function it(desc, fn) { let viTestFn = fn; - if (fn && fn.length) { + if (fn?.length) { viTestFn = () => new Promise((done) => fn(done)); } V.it(desc, viTestFn);