From 4e37433787849e717768f166ef0dc4b5deba20fa Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 5 Aug 2022 15:25:59 +0000 Subject: [PATCH] refactor: remove AnyDuringMigration from input (#6310) * fix: AnyDuringMigration for input * refactor: fix type of getSourceBlock() --- core/input.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/input.ts b/core/input.ts index 4d58cc2f0..fe6796619 100644 --- a/core/input.ts +++ b/core/input.ts @@ -63,7 +63,7 @@ export class Input { * Get the source block for this input. * @return The source block, or null if there is none. */ - getSourceBlock(): Block|null { + getSourceBlock(): Block { return this.sourceBlock_; } @@ -290,9 +290,6 @@ export class Input { if (this.connection) { this.connection.dispose(); } - // AnyDuringMigration because: Type 'null' is not assignable to type - // 'Block'. - this.sourceBlock_ = null as AnyDuringMigration; } }