summaryrefslogtreecommitdiff
path: root/js/copy_file.ts
diff options
context:
space:
mode:
authorJonathon Orsi <jonathon.orsi@gmail.com>2019-04-07 20:51:43 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-04-07 20:51:43 -0400
commit3452a10840ef47bb5546969ebe776289c7b095f1 (patch)
tree165439d870c7fdc2b914d9e008162ea7c17b4cb2 /js/copy_file.ts
parent86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff)
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/copy_file.ts')
-rw-r--r--js/copy_file.ts5
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];
}