Skip to content

Commit

Permalink
Use null-safe call
Browse files Browse the repository at this point in the history
  • Loading branch information
avli committed Nov 8, 2022
1 parent 0489f42 commit a4e7111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jarContentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
})
Expand Down

0 comments on commit a4e7111

Please sign in to comment.