mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00:00
LibWeb/IDB: Use correct key comparison when doing Index lookup
This commit is contained in:
parent
64c4bea189
commit
f3a31c98ea
Notes:
github-actions[bot]
2025-05-06 09:17:30 +00:00
Author: https://github.com/stelar7
Commit: f3a31c98ea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4524
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ void Index::set_name(String name)
|
|||
bool Index::has_record_with_key(GC::Ref<Key> key)
|
||||
{
|
||||
auto index = m_records.find_if([&key](auto const& record) {
|
||||
return record.key == key;
|
||||
return Key::equals(record.key, key);
|
||||
});
|
||||
|
||||
return index != m_records.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue