[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,
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