From e855f1c8a82bdbd77790c3734d89e54ce01fd3ff Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2019 10:18:58 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20allow=20`realpathBase`=20?= =?UTF-8?q?to=20be=20called=20w/=20`undefined`=20for=20`encoding`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/volume.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volume.ts b/src/volume.ts index 446fb66e..b929dd23 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -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`.