Skip to content

Commit

Permalink
Change undefined check to null check
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantpark04 committed Jul 23, 2024
1 parent b6941db commit 1dcf155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/platform-sdk-generator/src/model/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Model {
}

#addComponent(c: ir.Component) {
const nsName = (c.namespace === undefined || c.namespace === "Core")
const nsName = (c.namespace == null || c.namespace === "Core")
? ""
: c.namespace;
const ns = this.#namespaces.get(nsName);
Expand Down

0 comments on commit 1dcf155

Please sign in to comment.