LibWeb: WebIDL::OverloadResolution, minor code streamlining

This commit is contained in:
sideshowbarker 2024-07-24 16:22:55 +09:00 committed by Andreas Kling
parent cc7c49e235
commit 70e053bbf4
Notes: github-actions[bot] 2024-07-24 09:24:51 +00:00

View file

@ -274,9 +274,7 @@ JS::ThrowCompletionOr<ResolvedOverload> resolve_overload(JS::VM& vm, IDL::Effect
dbgln("FIXME: a callback interface type");
dbgln("FIXME: a dictionary type");
dbgln("FIXME: a record type");
if (type.is_object())
return true;
return false;
return type.is_object();
})) {
overloads.remove_all_other_entries();
}