[nit] Use void return type on LGraphCanvas.drawNodeWidgets (#495)

This commit is contained in:
Chenlei Hu
2025-02-08 22:07:13 -05:00
committed by GitHub
parent 0d5f7d79bd
commit 7e76fd58a1

View File

@@ -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