diff options
author | Jonathon Orsi <jonathon.orsi@gmail.com> | 2019-04-07 20:51:43 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-07 20:51:43 -0400 |
commit | 3452a10840ef47bb5546969ebe776289c7b095f1 (patch) | |
tree | 165439d870c7fdc2b914d9e008162ea7c17b4cb2 /js/read_dir.ts | |
parent | 86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff) |
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/read_dir.ts')
-rw-r--r-- | js/read_dir.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/read_dir.ts b/js/read_dir.ts index 9aa7c3375..1394c8514 100644 --- a/js/read_dir.ts +++ b/js/read_dir.ts @@ -8,9 +8,7 @@ import { assert } from "./util"; function req(path: string): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { const builder = flatbuffers.createBuilder(); const path_ = builder.createString(path); - msg.ReadDir.startReadDir(builder); - msg.ReadDir.addPath(builder, path_); - const inner = msg.ReadDir.endReadDir(builder); + const inner = msg.ReadDir.createReadDir(builder, path_); return [builder, msg.Any.ReadDir, inner]; } |