WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

Fix type check & clean redundant code #434

Closed webspam0 closed 4 months ago

webspam0 commented 4 months ago

Removes a few redundant code paths.

Second commit fixes an issue instead of just removing the redundant code path. The backing type of returned number can now be int. Would probably be better in a try / except, but I tried to keep to the original intent.

WASasquatch commented 4 months ago

Removes a few redundant code paths.

Second commit fixes an issue instead of just removing the redundant code path. The backing type of returned number can now be int. Would probably be better in a try / except, but I tried to keep to the original intent.

Wouldn't that break multiline? It will replace all \n not just excessive new lines starting with it?

WASasquatch commented 4 months ago

Thank you! Much appreciated!