Files
serenity/Userland/Libraries/LibWeb/DOMURL
Shannon Booth 3c4c45b13b LibWeb: Actually set empty serialized query to OptionalNone
Because the type returned by to_string is a String, _not_ an
Optional<String>, the following code:

if (serialized_query.is_empty())
    serialized_query = {};

Was achieving nothing at all! Make sure that the type is an
Optional<String> so that we're not just setting an empty string to an
empty string.

(cherry picked from commit d755a83c09a5fba82a91f9cc3f9e3b2e07880127)
2024-10-19 15:26:29 -04:00
..
2024-05-13 09:21:12 +02:00