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:
parent
e99c0ddb0e
commit
799c79cc5a
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue