From a1aa77e4567db0f68bba2ce6a2791169400bed64 Mon Sep 17 00:00:00 2001 From: Kevin Barabash Date: Sun, 13 Oct 2024 15:18:01 -0400 Subject: [PATCH] move @ts-expect-error comment after formatting --- packages/kas/src/nodes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/kas/src/nodes.ts b/packages/kas/src/nodes.ts index 9a09a2c6c6..f3b3c443d6 100644 --- a/packages/kas/src/nodes.ts +++ b/packages/kas/src/nodes.ts @@ -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) {