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/copy_file.ts | |
parent | 86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff) |
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/copy_file.ts')
-rw-r--r-- | js/copy_file.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/copy_file.ts b/js/copy_file.ts index a6ff9439e..5cab6d579 100644 --- a/js/copy_file.ts +++ b/js/copy_file.ts @@ -10,10 +10,7 @@ function req( const builder = flatbuffers.createBuilder(); const from_ = builder.createString(from); const to_ = builder.createString(to); - msg.CopyFile.startCopyFile(builder); - msg.CopyFile.addFrom(builder, from_); - msg.CopyFile.addTo(builder, to_); - const inner = msg.CopyFile.endCopyFile(builder); + const inner = msg.CopyFile.createCopyFile(builder, from_, to_); return [builder, msg.Any.CopyFile, inner]; } |