From a58755cd2517176ef9770ecbd0c3dd71540a22b8 Mon Sep 17 00:00:00 2001 From: Nicolas Carlo Date: Wed, 6 Dec 2023 00:10:37 -0500 Subject: [PATCH] Fix type errors --- src/refactorings/move-statement-down/move-statement-down.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/refactorings/move-statement-down/move-statement-down.ts b/src/refactorings/move-statement-down/move-statement-down.ts index 22760231..189950b5 100644 --- a/src/refactorings/move-statement-down/move-statement-down.ts +++ b/src/refactorings/move-statement-down/move-statement-down.ts @@ -100,7 +100,6 @@ function updateCode( if ( !path.isClassMethod() && !path.isObjectMethod() && - // @ts-expect-error Not sure why it complains about types, probably inferrence issue !Position.hasSpaceBetweenPaths(path, pathBelow) ) { newStatementPosition = newStatementPosition.putAtNextLine(); @@ -112,6 +111,7 @@ function updateCode( const extracted = path.getSibling(path.key - 1); if ( + // @ts-expect-error Not sure why it doesn't compile pathBelow.isObjectProperty() && !Position.hasSpaceBetweenPaths(path, extracted) ) {