Skip to content

Commit 0b1758e

Browse files
committed
chore: format
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 39eda09 commit 0b1758e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/model/walk.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface VisitorResult {
1313
* Function type for visiting nodes in the model tree
1414
* @param node The current node being visited
1515
* @param parent The parent of the current node, or null for top-level nodes
16-
* @returns
16+
* @returns
1717
* - void/true to continue normally
1818
* - false to stop traversal completely
1919
* - VisitorResult to control traversal or delete nodes
@@ -34,7 +34,7 @@ export function findJsonNodeById(model: IJsonModel, id: string): JsonNode | unde
3434
result = node;
3535
return { skipChildren: true }; // found it, no need to check children
3636
}
37-
return true
37+
return true;
3838
});
3939

4040
return result;
@@ -71,17 +71,17 @@ export function walkJsonModel(model: IJsonModel, visitor: ModelVisitor): void {
7171

7272
// Visit current node
7373
const result = visitor(node, parent);
74-
74+
7575
// Handle different return types
7676
if (result === false) {
7777
break;
7878
}
7979

80-
const visitorResult = typeof result === 'object' ? result : undefined;
81-
80+
const visitorResult = typeof result === "object" ? result : undefined;
81+
8282
// Handle deletion if requested
8383
if (visitorResult?.delete && parent && "children" in parent) {
84-
const index = parent.children.findIndex(child => child === node);
84+
const index = parent.children.findIndex((child) => child === node);
8585
if (index !== -1) {
8686
parent.children.splice(index, 1);
8787
continue;

0 commit comments

Comments
 (0)