Enforce curly braces in multi-line if statements (#619)

Removes formatters' ability to print code that goes to a new line, but
uses no braces to delineate.

It becomes more difficult to follow when using JS-style indents (two
spaces).

No effort required - braces added by auto-fixer.
This commit is contained in:
filtered
2025-02-27 02:08:23 +11:00
committed by GitHub
parent a43109d58a
commit 0e9b8b03b7
8 changed files with 57 additions and 34 deletions

View File

@@ -602,8 +602,9 @@ export class LiteGraphGlobal {
!type_b ||
type_a == type_b ||
(type_a == this.EVENT && type_b == this.ACTION)
)
) {
return true
}
// Enforce string type to handle toLowerCase call (-1 number not ok)
type_a = String(type_a)