mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +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,
|
||||
posY: number,
|
||||
ctx: CanvasRenderingContext2D,
|
||||
) {
|
||||
if (!node.widgets || !node.widgets.length) return 0
|
||||
): void {
|
||||
if (!node.widgets || !node.widgets.length) return
|
||||
const width = node.size[0]
|
||||
const widgets = node.widgets
|
||||
posY += 2
|
||||
|
||||
Reference in New Issue
Block a user