Skip to content

Commit

Permalink
remove unneeded type assertion, #299
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Jun 20, 2023
1 parent 9022837 commit 13414b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/PhetioObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,11 +774,7 @@ class PhetioObject extends Disposable {
}

assert && assert( linkedChild, 'phetioElement is needed' );

// TODO: linkedChild.element is not a full PhetioObject, see https://github.com/phetsims/tandem/issues/299
// This may be solved by making addLinkedElement parameter type PhetioObject
assert && assert( linkedChild.element instanceof PhetioObject, 'linkedChild.element should be a PhetioObject, ' + this.phetioID );
return linkedChild.element as PhetioObject;
return linkedChild.element;
}

/**
Expand Down

0 comments on commit 13414b3

Please sign in to comment.