⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294743 in webkit


Ignore:
Timestamp:
May 24, 2022, 6:34:14 AM (4 years ago)
Author:
Claudio Saavedra
Message:

[sqlite] Remove superfluous assertion
https://bugs.webkit.org/show_bug.cgi?id=240869

Reviewed by NOBODY (OOPS!).

Span::size() always returns a non-negative value, so checking
that the blob's size is greater than zero is unnecessary.

  • Source/WebCore/platform/sql/SQLiteStatement.cpp:

(WebCore::SQLiteStatement::bindBlob):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/platform/sql/SQLiteStatement.cpp

    r293484 r294743  
    9898    ASSERT(static_cast<unsigned>(index) <= bindParameterCount());
    9999    ASSERT(blob.data() || !blob.size());
    100     ASSERT(blob.size() >= 0);
    101100
    102101    return sqlite3_bind_blob(m_statement, index, blob.data(), blob.size(), SQLITE_TRANSIENT);
Note: See TracChangeset for help on using the changeset viewer.