Skip to content

Commit

Permalink
Fixed code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lvcabral committed Jan 20, 2025
1 parent 88bb5c1 commit 3e1ea3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/brsTypes/components/RoSGNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1784,10 +1784,7 @@ export function createNodeByType(interpreter: Interpreter, type: BrsString): RoS
typeDef = typeDefStack.pop();

// If this extends a built-in component, create it.
let node = NodeFactory.createComponent(
typeDef!.extends as BrsNodeType,
type.value
);
let node = NodeFactory.createComponent(typeDef!.extends as BrsNodeType, type.value);

// Default to Node as parent.
if (!node) {
Expand Down
5 changes: 1 addition & 4 deletions src/brsTypes/nodes/NodeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ export class NodeFactory {
* @returns {boolean} true if that type is resolvable/constructable, false otherwise
*/
public static canResolveComponentType(nodeType: BrsNodeType | string): boolean {
return (
this.additionalNodes.has(nodeType?.toLowerCase()) ||
nodeType in BrsNodeType
);
return this.additionalNodes.has(nodeType?.toLowerCase()) || nodeType in BrsNodeType;
}
}

0 comments on commit 3e1ea3f

Please sign in to comment.