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:
parent
fc9b9f2940
commit
22d635d850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user