Fix Swiftlint warnings

This commit is contained in:
Gwendal Roué committed 2026-02-15 15:09:40 +01:00
1 parent 819f4572df
commit 21b1322e05
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ public final class Statement {
/// The column names, ordered from left to right.
public lazy var columnNames: [String] = {
// swiftlint:disable:next redundant_self_in_closure
// swiftlint:disable:next redundant_self
let sqliteStatement = self.sqliteStatement
return (0..<CInt(columnCount)).map { String(cString: sqlite3_column_name(sqliteStatement, $0)) }
}()
@@ -806,14 +806,14 @@ extension ValueConcurrentObserver: TransactionObserver {
private func asyncFetch(databaseAccess: DatabaseAccess) {
databaseAccess.dbPool.asyncRead { [self] dbResult in
let isNotifying = self.lock.synchronized { self.notificationCallbacks != nil }
let isNotifying = lock.synchronized { self.notificationCallbacks != nil }
guard isNotifying else { return /* Cancelled */ }
let fetchResult = dbResult.flatMap { db in
Result { try databaseAccess.fetch(db) }
}
self.reduce(fetchResult)
reduce(fetchResult)
fetchingStateMutex.withLock { state in
switch state {
+1 -1
View File
@@ -5,6 +5,7 @@ disabled_rules:
- comment_spacing
- cyclomatic_complexity
- duplicate_enum_cases
- duplicate_imports
- file_length
- for_where
- force_cast
@@ -62,7 +63,6 @@ opt_in_rules:
- redundant_type_annotation
- shorthand_optional_binding
- sorted_first_last
- sorted_imports
- toggle_bool
- unhandled_throwing_task
- vertical_parameter_alignment_on_call