mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 05:24:17 +00:00
LibWeb: Simplify logic in Web::URL::URLSearchParams::sort
This commit is contained in:
committed by
Andreas Kling
parent
e99c0ddb0e
commit
799c79cc5a
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user