diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-05-13 22:03:04 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 08:03:04 -0400 |
commit | 3d7552af2e19f489501f6a1e27f8a4f488ce123a (patch) | |
tree | 079d7ea683b6916a7ed8ee9dac9261400d3bec5d /std/fs/_util.ts | |
parent | bc7817e1610faf0abe3c8629fc8163fdcb36b75f (diff) |
Update to TypeScript 3.9 (#4510)
Diffstat (limited to 'std/fs/_util.ts')
-rw-r--r-- | std/fs/_util.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/std/fs/_util.ts b/std/fs/_util.ts index 48a98a0b1..aecd9748b 100644 --- a/std/fs/_util.ts +++ b/std/fs/_util.ts @@ -17,13 +17,10 @@ export function isSubdir( const srcArray = src.split(sep); const destArray = dest.split(sep); // see: https://github.com/Microsoft/TypeScript/issues/30821 - return srcArray.reduce( - // @ts-ignore - (acc: true, current: string, i: number): boolean => { - return acc && destArray[i] === current; - }, - true - ); + // @ts-ignore + return srcArray.reduce((acc: true, current: string, i: number): boolean => { + return acc && destArray[i] === current; + }, true); } export type PathType = "file" | "dir" | "symlink"; |