Skip to content

Commit 22deadd

Browse files
authored
chore: Remove unnecessary cast. (#453)
1 parent c7265cf commit 22deadd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/keyboard_drag_strategy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
140140
draggingBlock: BlockSvg,
141141
localConns: RenderedConnection[],
142142
): ConnectionCandidate | null {
143-
// TODO(#385): Make sure this works for any cursor, not just LineCursor.
144-
const cursor = draggingBlock.workspace.getCursor() as LineCursor;
143+
const cursor = draggingBlock.workspace.getCursor();
145144
if (!cursor) return null;
146145

147146
// Helper function for traversal.

0 commit comments

Comments
 (0)