diff --git a/src/binary_annotator.cpp b/src/binary_annotator.cpp index 1e1668cd9ac..98a86486627 100644 --- a/src/binary_annotator.cpp +++ b/src/binary_annotator.cpp @@ -126,9 +126,7 @@ static BinarySection GenerateMissingSection(const uint64_t offset, std::map BinaryAnnotator::Annotate() { if (bfbs_ != nullptr && bfbs_length_ != 0) { flatbuffers::Verifier verifier(bfbs_, static_cast(bfbs_length_)); - if ((is_size_prefixed_ && - !reflection::VerifySizePrefixedSchemaBuffer(verifier)) || - !reflection::VerifySchemaBuffer(verifier)) { + if (!reflection::VerifySchemaBuffer(verifier)) { return {}; } }