summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/pmap.cpp')
-rw-r--r--Userland/Utilities/pmap.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp
index 7ad499424f..b37fdc7184 100644
--- a/Userland/Utilities/pmap.cpp
+++ b/Userland/Utilities/pmap.cpp
@@ -56,10 +56,9 @@ int main(int argc, char** argv)
}
auto file_contents = file->read_all();
- auto json = JsonValue::from_string(file_contents);
- VERIFY(json.has_value());
+ auto json = JsonValue::from_string(file_contents).release_value_but_fixme_should_propagate_errors();
- Vector<JsonValue> sorted_regions = json.value().as_array().values();
+ Vector<JsonValue> sorted_regions = json.as_array().values();
quick_sort(sorted_regions, [](auto& a, auto& b) {
return a.as_object().get("address").to_addr() < b.as_object().get("address").to_addr();
});