Skip to content

Commit a4e7111

Browse files
committed
Use null-safe call
1 parent 0489f42 commit a4e7111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/jarContentProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class JarContentProvider implements vscode.TextDocumentContentProvider {
1919
fs.readFile(pathToJar, (err, data) => {
2020
let zip = new JSZip();
2121
zip.loadAsync(data).then((new_zip) => {
22-
new_zip.file(pathToFileInJar).async("text").then((value) => {
22+
new_zip.file(pathToFileInJar)?.async("text").then((value) => {
2323
resolve(value);
2424
})
2525
})

0 commit comments

Comments
 (0)