mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[nit] Use void return type on LGraphCanvas.drawNodeWidgets (#495)
This commit is contained in:
@@ -5712,8 +5712,8 @@ export class LGraphCanvas implements ConnectionColorContext {
|
|||||||
node: LGraphNode,
|
node: LGraphNode,
|
||||||
posY: number,
|
posY: number,
|
||||||
ctx: CanvasRenderingContext2D,
|
ctx: CanvasRenderingContext2D,
|
||||||
) {
|
): void {
|
||||||
if (!node.widgets || !node.widgets.length) return 0
|
if (!node.widgets || !node.widgets.length) return
|
||||||
const width = node.size[0]
|
const width = node.size[0]
|
||||||
const widgets = node.widgets
|
const widgets = node.widgets
|
||||||
posY += 2
|
posY += 2
|
||||||
|
|||||||
Reference in New Issue
Block a user