mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 20:04:59 +00:00
LibWeb: Remove pointless type casts
In these cases, the parameters' static type matched the desired dynamic type, so these calls were discarded.
This commit is contained in:
parent
f95a11a7da
commit
b19fe744ab
2 changed files with 1 additions and 4 deletions
|
@ -97,8 +97,7 @@ void HTMLFormElement::submit_form(RefPtr<HTMLElement> submitter, bool from_submi
|
|||
|
||||
Vector<URLQueryParam> parameters;
|
||||
|
||||
for_each_in_inclusive_subtree_of_type<HTMLInputElement>([&](auto& node) {
|
||||
auto& input = verify_cast<HTMLInputElement>(node);
|
||||
for_each_in_inclusive_subtree_of_type<HTMLInputElement>([&](auto& input) {
|
||||
if (!input.name().is_null() && (input.type() != "submit" || &input == submitter))
|
||||
parameters.append({ input.name(), input.value() });
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue