diff options
Diffstat (limited to 'Userland/Utilities/arp.cpp')
-rw-r--r-- | Userland/Utilities/arp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Utilities/arp.cpp b/Userland/Utilities/arp.cpp index d19a89140d..1272cc51fd 100644 --- a/Userland/Utilities/arp.cpp +++ b/Userland/Utilities/arp.cpp @@ -100,10 +100,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("ip_address").to_string() < b.as_object().get("ip_address").to_string(); }); |