From 7e76fd58a1291401a2303f7e09b8919e89a25f4b Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 8 Feb 2025 22:07:13 -0500 Subject: [PATCH] [nit] Use void return type on LGraphCanvas.drawNodeWidgets (#495) --- src/LGraphCanvas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 8f9576dd8..fa40afb46 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -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