mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
LibSQL: Remove and update VERIFY
s
We are performing a lot of checks on pointers that are performed again immediately afterwards because of a dereference. This removes the redundant `VERIFY`s and simplifies a couple others.
This commit is contained in:
parent
036eb82aca
commit
8992ff5aeb
5 changed files with 2 additions and 15 deletions
|
@ -70,13 +70,11 @@ public:
|
|||
|
||||
u32 user_value(size_t index) const
|
||||
{
|
||||
VERIFY(index < m_user_values.size());
|
||||
return m_user_values[index];
|
||||
}
|
||||
|
||||
void set_user_value(size_t index, u32 value)
|
||||
{
|
||||
VERIFY(index < m_user_values.size());
|
||||
m_user_values[index] = value;
|
||||
update_zero_block();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue