We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c236bd commit 6ff08bdCopy full SHA for 6ff08bd
src/actions/enter.ts
@@ -127,15 +127,10 @@ export class EnterAction {
127
return !workspace.isReadOnly();
128
}
129
// Returning true is sometimes incorrect for icons, but there's no API to check.
130
- if (
131
- curNode instanceof BlockSvg ||
+ return curNode instanceof BlockSvg ||
132
curNode instanceof icons.Icon ||
133
curNode instanceof comments.CommentBarButton ||
134
- curNode instanceof comments.RenderedWorkspaceComment
135
- ) {
136
- return true;
137
- }
138
- return false;
+ curNode instanceof comments.RenderedWorkspaceComment;
139
140
141
/**
0 commit comments