From 81f41402e6d85fc7b4a6dfd93cef898dc37a53d9 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sat, 3 Jun 2023 20:56:20 +0200 Subject: [PATCH] Linter hapiness --- diagrams.net/src/worker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diagrams.net/src/worker.js b/diagrams.net/src/worker.js index 4b29bcfb5..d07466193 100644 --- a/diagrams.net/src/worker.js +++ b/diagrams.net/src/worker.js @@ -4,7 +4,7 @@ const puppeteer = require('puppeteer') class SyntaxError extends Error { constructor (err) { - console.log({err}) + console.log({ err }) super(`Syntax error in graph: ${JSON.stringify(err)}`) } } @@ -36,15 +36,15 @@ class Worker { format: 'svg' }).getSvg() const s = new XMLSerializer() - console.log({s}) + console.log({ s }) return { svg: s.serializeToString(svgRoot), error: null } } catch (err) { - console.log({err}) + console.log({ err }) return { svg: null, error: err } } }, task.source), page.waitForTimeout(this.convertTimeout) - ]); + ]) if (evalResult && evalResult.error) { throw new SyntaxError(evalResult.error)