mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
[Refactor] Standardise code style - modern JS (#636)
Uses unicorn rules to auto-refactor code. All verified.
This commit is contained in:
@@ -426,9 +426,7 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
|
||||
const start = LiteGraph.getTime()
|
||||
this.globaltime = 0.001 * (start - this.starttime)
|
||||
|
||||
const nodes = this._nodes_executable
|
||||
? this._nodes_executable
|
||||
: this._nodes
|
||||
const nodes = this._nodes_executable || this._nodes
|
||||
if (!nodes) return
|
||||
|
||||
limit = limit || nodes.length
|
||||
@@ -750,7 +748,7 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
|
||||
): void {
|
||||
mode = mode || LGraphEventMode.ALWAYS
|
||||
|
||||
const nodes = this._nodes_in_order ? this._nodes_in_order : this._nodes
|
||||
const nodes = this._nodes_in_order || this._nodes
|
||||
if (!nodes) return
|
||||
|
||||
for (const node of nodes) {
|
||||
|
||||
Reference in New Issue
Block a user