1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibWeb: Simplify logic in Web::URL::URLSearchParams::sort

This commit is contained in:
Shannon Booth 2023-06-25 14:13:33 +12:00 committed by Andreas Kling
parent e99c0ddb0e
commit 799c79cc5a

View file

@ -276,11 +276,7 @@ WebIDL::ExceptionOr<void> URLSearchParams::sort()
k != a_code_points.end() && l != b_code_points.end();
++k, ++l) {
if (*k != *l) {
if (*k < *l) {
return true;
} else {
return false;
}
return *k < *l;
}
}
VERIFY_NOT_REACHED();