Skip to content

Commit 07641a9

Browse files
ci: apply automated fixes
1 parent 4a37334 commit 07641a9

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

packages/devtools-utils/src/solid/class.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ import type { JSX } from 'solid-js'
1414
export function constructCoreClass(Component: () => JSX.Element) {
1515
class DevtoolsCore {
1616
#isMounted = false
17-
#isMounting = false;
18-
#mountCb: (() => void) | null = null;
17+
#isMounting = false
18+
#mountCb: (() => void) | null = null
1919
#dispose?: () => void
2020
#Component: any
2121
#ThemeProvider: any
2222

23-
constructor() { }
23+
constructor() {}
2424

2525
async mount<T extends HTMLElement>(el: T, theme: 'light' | 'dark') {
26-
this.#isMounting = true;
26+
this.#isMounting = true
2727
const { lazy } = await import('solid-js')
2828
const { render, Portal } = await import('solid-js/web')
2929
if (this.#isMounted) {
@@ -52,11 +52,11 @@ export function constructCoreClass(Component: () => JSX.Element) {
5252
)
5353
}, mountTo)
5454
this.#isMounted = true
55-
this.#isMounting = false;
55+
this.#isMounting = false
5656
this.#dispose = dispose
5757
if (this.#mountCb) {
58-
this.#mountCb();
59-
this.#mountCb = null;
58+
this.#mountCb()
59+
this.#mountCb = null
6060
}
6161
}
6262

@@ -69,7 +69,7 @@ export function constructCoreClass(Component: () => JSX.Element) {
6969
this.#dispose?.()
7070
this.#isMounted = false
7171
}
72-
return;
72+
return
7373
}
7474
this.#dispose?.()
7575
this.#isMounted = false
@@ -79,8 +79,8 @@ export function constructCoreClass(Component: () => JSX.Element) {
7979
constructor() {
8080
super()
8181
}
82-
async mount<T extends HTMLElement>(_el: T, _theme: 'light' | 'dark') { }
83-
unmount() { }
82+
async mount<T extends HTMLElement>(_el: T, _theme: 'light' | 'dark') {}
83+
unmount() {}
8484
}
8585
return [DevtoolsCore, NoOpDevtoolsCore] as const
8686
}

0 commit comments

Comments
 (0)