about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 1e74158b821..052e3918241 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -1133,7 +1133,7 @@ export function linkToCommand(_: Ctx): Cmd {
 export function viewMemoryLayout(ctx: CtxInit): Cmd {
     return async () => {
         const editor = vscode.window.activeTextEditor;
-        if (!editor) return "";
+        if (!editor) return;
         const client = ctx.client;
 
         const position = editor.selection.active;