From 22d635d85046ac8f2ed50f2c562ef456e0b9b25f Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 10 Sep 2023 16:12:03 -0700 Subject: [PATCH] ndb: don't verify flatbuffers in release builds --- nostrdb/Ndb.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nostrdb/Ndb.swift b/nostrdb/Ndb.swift index 791c7535..e1a86e51 100644 --- a/nostrdb/Ndb.swift +++ b/nostrdb/Ndb.swift @@ -191,11 +191,11 @@ class Ndb { } #if DEBUG -func getDebugCheckedRoot(byteBuffer: inout ByteBuffer) throws -> T { - return try getRoot(byteBuffer: &byteBuffer) +func getDebugCheckedRoot(byteBuffer: inout ByteBuffer) throws -> T { + return getRoot(byteBuffer: &byteBuffer) } #else func getDebugCheckedRoot(byteBuffer: inout ByteBuffer) throws -> T { - return try getRoot(byteBuffer: &byteBuffer) + return getRoot(byteBuffer: &byteBuffer) } #endif