mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
Everywhere: Avoid calling from_utf8 on FlyString or String
We already have a String :^)
This commit is contained in:
parent
55ec1cbfb5
commit
6ce0d588ee
6 changed files with 18 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue