Skip to content

Commit 4f0b071

Browse files
Fix getContent algo
Signed-off-by: Francis Bouvier <[email protected]>
1 parent 9ce574a commit 4f0b071

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cdp/cdp.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ pub fn getContent(
223223
}
224224
if (finished == 0) break;
225225
}
226-
n = (try scanner.next()).string;
227226
params = void{};
228227
} else {
229228

@@ -234,6 +233,9 @@ pub fn getContent(
234233
};
235234
params = try std.json.innerParse(T, alloc, scanner, options);
236235
}
236+
237+
// go next
238+
n = (try scanner.next()).string;
237239
} else {
238240
params = switch (@typeInfo(T)) {
239241
.Void => void{},

0 commit comments

Comments
 (0)