Remove unnecessary swiftlint:disables
Ina48049f44f, we disabled some Swiftlint rules due to a Swiftlint bug. This reverts that commit because it [appears the bug has been fixed][0]. [0]:7bd8362dae/CHANGELOG.md (0503-bundle-of-towels)
This commit is contained in:
parent
2a72010bef
commit
fb8f390733
@ -480,7 +480,6 @@ extension GRDBDatabaseStorageAdapter: SDSDatabaseStorageAdapter {
|
||||
public func read<T>(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] = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user