mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
refactor: remove AnyDuringMigration from input (#6310)
* fix: AnyDuringMigration for input * refactor: fix type of getSourceBlock()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user