Skip to content

Commit

Permalink
#16 chore: Strictly compare against undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Aug 1, 2022
1 parent 0c90c00 commit 3b5eaed
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/meta-diagram.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.production.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/meta-diagram.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/meta-diagram.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/models/MetaLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class MetaLink implements ILink {
variant: string,
options: Map<string, any>
) {
if (options == undefined) {
if (options === undefined) {
options = new Map<string, any>();
}
this.sourceId = sourceId;
Expand Down
2 changes: 1 addition & 1 deletion src/models/MetaNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class MetaNode {
variant: string,
options: Map<string, any>
) {
if (options == undefined) {
if (options === undefined) {
options = new Map<string, any>();
}
this.children = [];
Expand Down

0 comments on commit 3b5eaed

Please sign in to comment.