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 23afb74 commit c09eb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/model/ParticleAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class ParticleAtom extends PhetioObject {
}

public extractParticleClosestToCenter( particleType: ParticleTypeString ): Particle {
let particle = null;
let particle: Particle | null = null;
switch( particleType ) {
case 'proton':
if ( this.protons.length > 0 ) {
Expand Down Expand Up @@ -464,7 +464,7 @@ class ParticleAtom extends PhetioObject {
this.removeParticle( particle );
}

return particle as unknown as Particle;
return particle!;
}

/**
Expand Down

0 comments on commit c09eb9f

Please sign in to comment.