summaryrefslogtreecommitdiff
path: root/js/chmod.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/chmod.ts
parent86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff)
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/chmod.ts')
-rw-r--r--js/chmod.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/chmod.ts b/js/chmod.ts
index b26f78528..5abecb576 100644
--- a/js/chmod.ts
+++ b/js/chmod.ts
@@ -9,10 +9,7 @@ function req(
): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] {
const builder = flatbuffers.createBuilder();
const path_ = builder.createString(path);
- msg.Chmod.startChmod(builder);
- msg.Chmod.addPath(builder, path_);
- msg.Chmod.addMode(builder, mode);
- const inner = msg.Chmod.endChmod(builder);
+ const inner = msg.Chmod.createChmod(builder, path_, mode);
return [builder, msg.Any.Chmod, inner];
}