0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

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.
This commit is contained in:
Casper Beyer 2020-06-10 05:34:32 +08:00 committed by GitHub
parent bad6f2b224
commit 15cfe9e6e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",