Skip to content

Commit

Permalink
remove ts-expect-errors, #38
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 2, 2023
1 parent ec8ab1f commit 23afb74
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/model/ParticleAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ class ParticleAtom extends PhetioObject {
this.liveAnimations = createObservableArray();
this.liveAnimations.addItemRemovedListener( animation => {
animation && animation.stop();

// @ts-expect-error, wait, why are we doing this and does it even matter for this local variable?
animation = null;
} );

this.protonCountProperty = this.protons.lengthProperty;
Expand Down Expand Up @@ -599,8 +596,7 @@ class ParticleAtom extends PhetioObject {
const scaleFactorA = 2.4;
const scaleFactorB = 1.35;

// @ts-expect-error, not sure what is going on here, seems like a bug to me, see https://github.com/phetsims/shred/issues/38
const scaleFunction = new LinearFunction( radiusA, radiusB, scaleFactorA, scaleFactorB, this.nucleonRadius );
const scaleFunction = new LinearFunction( radiusA, radiusB, scaleFactorA, scaleFactorB, !!this.nucleonRadius );
const scaleFactor = scaleFunction.evaluate( this.nucleonRadius );

for ( let i = 0; i < nucleons.length; i++ ) {
Expand Down

0 comments on commit 23afb74

Please sign in to comment.