Skip to content

Commit 2cdb065

Browse files
Jake ChampionJakeChampion
authored andcommitted
remove duplicate definition of key_len
1 parent 66e16c5 commit 2cdb065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c-dependencies/js-compute-runtime/builtins/object-store.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ bool put(JSContext *cx, unsigned argc, JS::Value *vp) {
198198
return ReturnPromiseRejectedWithPendingError(cx, args);
199199
}
200200

201-
size_t key_len;
202201
size_t key_len;
203202
std::optional<char *> key_chars = parse_and_validate_key(cx, args.get(0), &key_len);
204203
if (!key_chars) {
@@ -228,7 +227,8 @@ bool put(JSContext *cx, unsigned argc, JS::Value *vp) {
228227
// If the body stream is backed by a C@E body handle, we can directly pipe
229228
// that handle into the object store.
230229
if (builtins::NativeStreamSource::stream_is_body(cx, body_obj)) {
231-
JS::RootedObject stream_source(cx, builtins::NativeStreamSource::get_stream_source(cx, body_obj));
230+
JS::RootedObject stream_source(cx,
231+
builtins::NativeStreamSource::get_stream_source(cx, body_obj));
232232
JS::RootedObject source_owner(cx, builtins::NativeStreamSource::owner(stream_source));
233233
BodyHandle body = RequestOrResponse::body_handle(source_owner);
234234

0 commit comments

Comments
 (0)