From a4e7111e61f7830adbcf31f3e890b96331d32c04 Mon Sep 17 00:00:00 2001 From: Andrey Lisin Date: Tue, 8 Nov 2022 17:10:20 +0100 Subject: [PATCH] Use null-safe call --- src/jarContentProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jarContentProvider.ts b/src/jarContentProvider.ts index 9beba7e..9af3399 100644 --- a/src/jarContentProvider.ts +++ b/src/jarContentProvider.ts @@ -19,7 +19,7 @@ export class JarContentProvider implements vscode.TextDocumentContentProvider { fs.readFile(pathToJar, (err, data) => { let zip = new JSZip(); zip.loadAsync(data).then((new_zip) => { - new_zip.file(pathToFileInJar).async("text").then((value) => { + new_zip.file(pathToFileInJar)?.async("text").then((value) => { resolve(value); }) })