summaryrefslogtreecommitdiff
path: root/fs/path/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/path/mod.ts')
-rw-r--r--fs/path/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/path/mod.ts b/fs/path/mod.ts
index 4ca630ed6..ffcc721a9 100644
--- a/fs/path/mod.ts
+++ b/fs/path/mod.ts
@@ -847,7 +847,7 @@ export const win32 = {
parse(path: string): ParsedPath {
assertPath(path);
- let ret = { root: "", dir: "", base: "", ext: "", name: "" } as ParsedPath;
+ let ret: ParsedPath = { root: "", dir: "", base: "", ext: "", name: "" };
const len = path.length;
if (len === 0) return ret;
@@ -1324,7 +1324,7 @@ export const posix = {
parse(path: string): ParsedPath {
assertPath(path);
- let ret = { root: "", dir: "", base: "", ext: "", name: "" } as ParsedPath;
+ let ret: ParsedPath = { root: "", dir: "", base: "", ext: "", name: "" };
if (path.length === 0) return ret;
let isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
let start: number;