Skip to content

Commit

Permalink
fix: πŸ› refactor #openLink to be compatible w/ strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 6, 2019
1 parent 6dc4913 commit 216a85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -898,7 +898,7 @@ export class Volume {
}

// Resolve symlinks.
let realLink: Link = link;
let realLink: Link | null = link;
if (resolveSymlinks) realLink = this.resolveSymlinks(link);
if (!realLink) throw createError(ENOENT, 'open', link.getPath());

Expand Down

0 comments on commit 216a85f

Please sign in to comment.