Fix getContent algo

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-04-19 11:35:47 +02:00
parent 9ce574a1f0
commit 4f0b071c59

View File

@@ -223,7 +223,6 @@ pub fn getContent(
}
if (finished == 0) break;
}
n = (try scanner.next()).string;
params = void{};
} else {
@@ -234,6 +233,9 @@ pub fn getContent(
};
params = try std.json.innerParse(T, alloc, scanner, options);
}
// go next
n = (try scanner.next()).string;
} else {
params = switch (@typeInfo(T)) {
.Void => void{},