summaryrefslogtreecommitdiff
path: root/Userland/Shell/Shell.cpp
diff options
context:
space:
mode:
authorCameron Youell <cameronyouell@gmail.com>2023-04-17 15:38:27 +1000
committerAndreas Kling <kling@serenityos.org>2023-04-24 09:21:51 +0200
commit8134dccdc7bd80db922be30021888e948a5c60c4 (patch)
tree568014d50afb7ea5a36eed958cd63e2fc9728d06 /Userland/Shell/Shell.cpp
parent3b00636288e1ce0dec849266f2ab3db8e2a6a3cf (diff)
downloadserenity-8134dccdc7bd80db922be30021888e948a5c60c4.zip
AK: Add new failable `JsonArray::{append/set}` functions
Move all old usages to the more explicit `JsonArray:must_{append/set}`
Diffstat (limited to 'Userland/Shell/Shell.cpp')
-rw-r--r--Userland/Shell/Shell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index 638889564f..f5acf281be 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -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));
}