mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 17:30:07 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user