mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
AK: Add new failable JsonArray::{append/set} functions
Move all old usages to the more explicit `JsonArray:must_{append/set}`
This commit is contained in:
committed by
Andreas Kling
parent
3b00636288
commit
8134dccdc7
@@ -260,7 +260,7 @@ public:
|
||||
for (auto& object : Object::all_objects()) {
|
||||
JsonObject json_object;
|
||||
object.save_to(json_object);
|
||||
objects.append(move(json_object));
|
||||
objects.must_append(move(json_object));
|
||||
}
|
||||
response.set("objects", move(objects));
|
||||
send_response(response);
|
||||
|
||||
Reference in New Issue
Block a user