Skip to content

Commit

Permalink
fix: πŸ› allow realpathBase to be called w/ undefined for encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 6, 2019
1 parent aedcbda commit e855f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -1413,7 +1413,7 @@ export class Volume {
this.wrapAsync(this.symlinkBase, [targetFilename, pathFilename], callback);
}

private realpathBase(filename: string, encoding: TEncodingExtended): TDataOut {
private realpathBase(filename: string, encoding: TEncodingExtended | undefined): TDataOut {
const steps = filenameToSteps(filename);
const link: Link = this.getLink(steps);
// TODO: this check has to be perfomed by `lstat`.
Expand Down

0 comments on commit e855f1c

Please sign in to comment.