Skip to content

Commit

Permalink
fix: πŸ› refactor #statBase 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 e855f1c commit ba0c20a
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 @@ -1464,7 +1464,7 @@ export class Volume {
private statBase(filename: string, bigint: false): Stats<number>;
private statBase(filename: string, bigint: true): Stats<bigint>;
private statBase(filename: string, bigint: boolean = false): Stats {
let link: Link = this.getLink(filenameToSteps(filename));
let link: Link | null = this.getLink(filenameToSteps(filename));
if (!link) throw createError(ENOENT, 'stat', filename);

// Resolve symlinks.
Expand Down

0 comments on commit ba0c20a

Please sign in to comment.