Skip to content

Commit

Permalink
fix: πŸ› refactor #readdirBase to be compatible w/ strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent b2e0f76 commit ab248b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ export class Volume {

private readdirBase(filename: string, options: IReaddirOptions): TDataOut[] | Dirent[] {
const steps = filenameToSteps(filename);
const link: Link = this.getResolvedLink(steps);
const link: Link | null = this.getResolvedLink(steps);
if (!link) throw createError(ENOENT, 'readdir', filename);

const node = link.getNode();
Expand Down

0 comments on commit ab248b4

Please sign in to comment.