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/chmod.ts | |
parent | 86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff) |
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/chmod.ts')
-rw-r--r-- | js/chmod.ts | 5 |
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]; } |