1
0
mirror of git://jb55.com/damus synced 2024-09-05 21:03:51 +00:00

ndb: don't verify flatbuffers in release builds

This commit is contained in:
William Casarin 2023-09-10 16:12:03 -07:00
parent fc9b9f2940
commit 22d635d850

View File

@ -191,11 +191,11 @@ class Ndb {
}
#if DEBUG
func getDebugCheckedRoot<T: FlatBufferObject & Verifiable>(byteBuffer: inout ByteBuffer) throws -> T {
return try getRoot(byteBuffer: &byteBuffer)
func getDebugCheckedRoot<T: FlatBufferObject>(byteBuffer: inout ByteBuffer) throws -> T {
return getRoot(byteBuffer: &byteBuffer)
}
#else
func getDebugCheckedRoot<T: FlatBufferObject>(byteBuffer: inout ByteBuffer) throws -> T {
return try getRoot(byteBuffer: &byteBuffer)
return getRoot(byteBuffer: &byteBuffer)
}
#endif