From 525f97dfe583951b67aed1318586c075b6c3ba30 Mon Sep 17 00:00:00 2001 From: Tobias Baunbaek Date: Fri, 26 Jan 2024 14:49:57 +0100 Subject: [PATCH] Linting --- lib/devtools-inspector.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/devtools-inspector.js b/lib/devtools-inspector.js index fc74caa..dde81cf 100644 --- a/lib/devtools-inspector.js +++ b/lib/devtools-inspector.js @@ -129,7 +129,7 @@ customElements.define('devtools-inspector', class extends HTMLElement { const app = this.apps.get(sessionId) if (!app) return devtoolsSocket.destroy() - const { publicKey, inspectorSession } = app + const { inspectorSession } = app const onMessage = msg => { const { pearInspectMethod } = msg @@ -177,11 +177,12 @@ customElements.define('devtools-inspector', class extends HTMLElement { // Can't use `uuid` module for some reason as it results in a throw with `crypto` when importing function generateUuid () { - var result, i, j + let result, i, j result = '' for (j = 0; j < 32; j++) { - if (j == 8 || j == 12 || j == 16 || j == 20) + if (j === 8 || j === 12 || j === 16 || j === 20) { result = result + '-' + } i = Math.floor(Math.random() * 16).toString(16) result = result + i }