diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-03-12 14:51:51 +0900 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-12 01:51:51 -0400 |
| commit | f124e645263099132025256df8594ca0dc5cc83a (patch) | |
| tree | 07f0f99b99e55f431f71f4463aa912ab96405f61 /fs/path/mod.ts | |
| parent | 4a97a6e67e93cdbcecde3d9b99092f15d3dfd803 (diff) | |
fix: eslint errors (denoland/deno_std#265)
Original: https://github.com/denoland/deno_std/commit/61af419bbc5717c2e2552050aacb20ef1b17480b
Diffstat (limited to 'fs/path/mod.ts')
| -rw-r--r-- | fs/path/mod.ts | 4 |
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; |
