Skip to content

Commit 85378e5

Browse files
authored
chore: fix lint warnings. (#459)
1 parent 77b9da1 commit 85378e5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/actions/action_menu.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ export class ActionMenu {
8686
const node = cursor.getCurNode();
8787
if (!node) return false;
8888
// TODO(google/blockly#8847): Add typeguard for IContextMenu in core when this moves over
89-
const location = node.getLocation() as any;
90-
if (location.showContextMenu) {
89+
const location = node.getLocation();
90+
if (
91+
'showContextMenu' in location &&
92+
typeof location.showContextMenu === 'function'
93+
) {
9194
location.showContextMenu(menuOpenEvent);
9295
} else {
9396
console.info(`No action menu for ASTNode of type ${node.getType()}`);

src/keyboard_drag_strategy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
ASTNode,
99
BlockSvg,
1010
ConnectionType,
11-
LineCursor,
1211
RenderedConnection,
1312
dragging,
1413
utils,

0 commit comments

Comments
 (0)