mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibSQL: Remove superfluous VERIFY
s for Vector
accessing
Remove some `[]` operators' out-of-bounds checks which are already performed by the underlying `Vector`.
This commit is contained in:
parent
234bc0c237
commit
0460a654d4
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/gmta
Commit: 0460a654d4
Pull-request: https://github.com/SerenityOS/serenity/pull/16197
Issue: https://github.com/SerenityOS/serenity/issues/15844
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 3 additions and 23 deletions
|
@ -49,8 +49,8 @@ public:
|
|||
[[nodiscard]] bool is_null() const { return m_data.is_empty(); }
|
||||
[[nodiscard]] bool has(String const& name) const { return index_of(name).has_value(); }
|
||||
|
||||
Value const& operator[](size_t ix) const;
|
||||
Value& operator[](size_t ix);
|
||||
Value const& operator[](size_t ix) const { return m_data[ix]; }
|
||||
Value& operator[](size_t ix) { return m_data[ix]; }
|
||||
Value const& operator[](String const& name) const;
|
||||
Value& operator[](String const& name);
|
||||
void append(Value const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue