summaryrefslogtreecommitdiff
path: root/js/chmod.ts
diff options
context:
space:
mode:
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];
}