mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-23 21:14:31 +00:00
Everywhere: Avoid calling from_utf8 on FlyString or String
We already have a String :^)
This commit is contained in:
committed by
Andreas Kling
parent
55ec1cbfb5
commit
6ce0d588ee
@@ -343,7 +343,7 @@ void WindowOrWorkerGlobalScopeMixin::queue_performance_entry(JS::NonnullGCPtr<Pe
|
||||
// or whose type member equals to entryType:
|
||||
auto iterator = registered_observer->options_list().find_if([&entry_type](PerformanceTimeline::PerformanceObserverInit const& entry) {
|
||||
if (entry.entry_types.has_value())
|
||||
return entry.entry_types->contains_slow(String::from_utf8(entry_type).release_value_but_fixme_should_propagate_errors());
|
||||
return entry.entry_types->contains_slow(entry_type.to_string());
|
||||
|
||||
VERIFY(entry.type.has_value());
|
||||
return entry.type.value() == entry_type;
|
||||
|
||||
Reference in New Issue
Block a user