fix typescript return path warning

This commit is contained in:
Adenine 2023-06-19 00:27:53 -04:00
parent de5e3cf745
commit c43cfefdd8

View file

@ -1133,7 +1133,7 @@ export function linkToCommand(_: Ctx): Cmd {
export function viewMemoryLayout(ctx: CtxInit): Cmd { export function viewMemoryLayout(ctx: CtxInit): Cmd {
return async () => { return async () => {
const editor = vscode.window.activeTextEditor; const editor = vscode.window.activeTextEditor;
if (!editor) return ""; if (!editor) return;
const client = ctx.client; const client = ctx.client;
const position = editor.selection.active; const position = editor.selection.active;