diff options
author | Yingbo (Max) Wang <maxwyb@gmail.com> | 2019-04-23 06:47:29 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-23 09:47:29 -0400 |
commit | da64fba046e4f324bff62d71ae74906fa6e3421f (patch) | |
tree | 1fdecc68f9d6644f8c245cad91eaebd3fb5531e0 /js/symlink.ts | |
parent | d9408017541ffe6c86f4904973c22f829ade1ac4 (diff) |
symlink: Ignore type parameter on non-Windows platforms (#2185)
Fixes #2169
Diffstat (limited to 'js/symlink.ts')
-rw-r--r-- | js/symlink.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/symlink.ts b/js/symlink.ts index 9230e9fa0..28bf6c859 100644 --- a/js/symlink.ts +++ b/js/symlink.ts @@ -3,14 +3,14 @@ import * as msg from "gen/cli/msg_generated"; import * as flatbuffers from "./flatbuffers"; import * as dispatch from "./dispatch"; import * as util from "./util"; +import { platform } from "./build"; function req( oldname: string, newname: string, type?: string ): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { - // TODO Use type for Windows. - if (type) { + if (platform.os === "win" && type) { return util.notImplemented(); } const builder = flatbuffers.createBuilder(); |