diff --git a/SignalServiceKit/src/Storage/Database/GRDBDatabaseStorageAdapter.swift b/SignalServiceKit/src/Storage/Database/GRDBDatabaseStorageAdapter.swift index faa951ec15..0685600984 100644 --- a/SignalServiceKit/src/Storage/Database/GRDBDatabaseStorageAdapter.swift +++ b/SignalServiceKit/src/Storage/Database/GRDBDatabaseStorageAdapter.swift @@ -480,7 +480,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { public func read(block: (GRDBReadTransaction) throws -> T) throws -> T { #if TESTABLE_BUILD - // swiftlint:disable inert_defer owsAssertDebug(Self.canOpenTransaction) // Check for nested tractions. if Self.detectNestedTransactions { @@ -492,7 +491,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { Self.canOpenTransaction = true } } - // swiftlint:enable inert_defer #endif return try pool.read { database in @@ -524,7 +522,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { public func read(block: (GRDBReadTransaction) -> Void) throws { #if TESTABLE_BUILD - // swiftlint:disable inert_defer owsAssertDebug(Self.canOpenTransaction) if Self.detectNestedTransactions { // Check for nested tractions. @@ -535,7 +532,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { Self.canOpenTransaction = true } } - // swiftlint:enable inert_defer #endif try pool.read { database in @@ -549,7 +545,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { public func write(block: (GRDBWriteTransaction) -> Void) throws { #if TESTABLE_BUILD - // swiftlint:disable inert_defer owsAssertDebug(Self.canOpenTransaction) // Check for nested tractions. if Self.detectNestedTransactions { @@ -561,7 +556,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter { Self.canOpenTransaction = true } } - // swiftlint:enable inert_defer #endif var syncCompletions: [GRDBWriteTransaction.CompletionBlock] = []