about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdenine <adenine.dev@gmail.com>2023-06-19 00:27:53 -0400
committerAdenine <adenine.dev@gmail.com>2023-07-07 23:09:41 -0400
commitc43cfefdd868c92f60d936e8958c0980428a0679 (patch)
tree868b6b922b32757af9e162d0b61cf4c5bd6e8687
parentde5e3cf7459b955aa729bcbc6150655edf23e790 (diff)
downloadrust-c43cfefdd868c92f60d936e8958c0980428a0679.tar.gz
rust-c43cfefdd868c92f60d936e8958c0980428a0679.zip
fix typescript return path warning
-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;