Skip to content

Commit

Permalink
move @ts-expect-error comment after formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinb-khan committed Oct 13, 2024
1 parent 47738a7 commit a1aa77e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kas/src/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1881,11 +1881,11 @@ export class Pow extends Expr {
const exp = pow.exp.asRational();
const decimalsInBase = pow.base.getDecimalPlaces();
const root = new Pow(pow.base, new Rational(1, exp.d));
// @ts-expect-error: we assume that `root.collect()` returns
// a Num here but tbh I'm not sure how this code isn't causing
// an infinite loop.
const decimalsInRoot: number = root
.collect()
// @ts-expect-error: we assume that `root.collect()` returns
// a Num here but tbh I'm not sure how this code isn't causing
// an infinite loop.
.getDecimalPlaces();

if (decimalsInRoot > decimalsInBase) {
Expand Down

0 comments on commit a1aa77e

Please sign in to comment.