mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00: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:
parent
3b00636288
commit
8134dccdc7
14 changed files with 28 additions and 25 deletions
|
@ -2367,7 +2367,7 @@ void Shell::save_to(JsonObject& object)
|
|||
job_object.set("running_time", job_entry.value->timer().elapsed());
|
||||
job_object.set("command", job_entry.value->cmd());
|
||||
job_object.set("is_running_in_background", job_entry.value->is_running_in_background());
|
||||
job_objects.append(move(job_object));
|
||||
job_objects.must_append(move(job_object));
|
||||
}
|
||||
object.set("jobs", move(job_objects));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue