Skip to content

Commit

Permalink
Remove unnecessary type assertions, see phetsims/chipper#1238
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 19, 2022
1 parent caa9546 commit d9e1051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/PhetioDataHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class PhetioDataHandler<T extends IntentionalAny[] = []> extends PhetioObject {

// valueType overrides the phetioType validator so we don't use that one if there is a valueType
if ( parameter.phetioType && !parameter.valueType ) {
assert && validate( args[ i ], parameter.phetioType.validator as Validator, VALIDATE_OPTIONS_FALSE );
assert && validate( args[ i ], parameter.phetioType.validator, VALIDATE_OPTIONS_FALSE );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/Tandem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Tandem {

// When the query parameter phetioPrintMissingTandems is true, report tandems that are optional but not
// supplied, but not for Fonts because they are too numerous.
if ( !stackTrace!.includes( 'Font' ) ) {
if ( !stackTrace.includes( 'Font' ) ) {
missingTandems.optional.push( { phetioID: tandem.phetioID, stack: stackTrace } );
}
}
Expand Down

0 comments on commit d9e1051

Please sign in to comment.