diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-06-10 05:34:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 17:34:32 -0400 |
commit | 15cfe9e6e5b20a3003a1d084030a5359c0fc5bab (patch) | |
tree | 530b10c3e322ede0183ba94ef3be37cd4225bf71 /std/fs | |
parent | bad6f2b224a92e3bf5cdaf5f8cbc700cb0f9de04 (diff) |
Remove redundant call to `ensureDirSync` (#6189)
There's a seemingly redundant call to `ensureDirSync` right after a call
to `await ensureDir`.
This removes the offending call.
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/ensure_symlink.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/std/fs/ensure_symlink.ts b/std/fs/ensure_symlink.ts index a07f97220..be96d5b13 100644 --- a/std/fs/ensure_symlink.ts +++ b/std/fs/ensure_symlink.ts @@ -28,7 +28,6 @@ export async function ensureSymlink(src: string, dest: string): Promise<void> { await ensureDir(path.dirname(dest)); - ensureDirSync(path.dirname(dest)); if (Deno.build.os === "windows") { await Deno.symlink(src, dest, { type: srcFilePathType === "dir" ? "dir" : "file", |