summaryrefslogtreecommitdiff
path: root/std/fs
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs')
-rw-r--r--std/fs/_util.ts11
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";