File tree Expand file tree Collapse file tree
ValueObservation/Observers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public final class Statement {
6060
6161 /// The column names, ordered from left to right.
6262 public lazy var columnNames : [ String ] = {
63- // swiftlint:disable:next redundant_self_in_closure
63+ // swiftlint:disable:next redundant_self
6464 let sqliteStatement = self . sqliteStatement
6565 return ( 0 ..< CInt ( columnCount) ) . map { String ( cString: sqlite3_column_name ( sqliteStatement, $0) ) }
6666 } ( )
Original file line number Diff line number Diff line change @@ -806,14 +806,14 @@ extension ValueConcurrentObserver: TransactionObserver {
806806
807807 private func asyncFetch( databaseAccess: DatabaseAccess ) {
808808 databaseAccess. dbPool. asyncRead { [ self ] dbResult in
809- let isNotifying = self . lock. synchronized { self . notificationCallbacks != nil }
809+ let isNotifying = lock. synchronized { self . notificationCallbacks != nil }
810810 guard isNotifying else { return /* Cancelled */ }
811811
812812 let fetchResult = dbResult. flatMap { db in
813813 Result { try databaseAccess. fetch ( db) }
814814 }
815815
816- self . reduce ( fetchResult)
816+ reduce ( fetchResult)
817817
818818 fetchingStateMutex. withLock { state in
819819 switch state {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ disabled_rules:
55 - comment_spacing
66 - cyclomatic_complexity
77 - duplicate_enum_cases
8+ - duplicate_imports
89 - file_length
910 - for_where
1011 - force_cast
@@ -62,7 +63,6 @@ opt_in_rules:
6263 - redundant_type_annotation
6364 - shorthand_optional_binding
6465 - sorted_first_last
65- - sorted_imports
6666 - toggle_bool
6767 - unhandled_throwing_task
6868 - vertical_parameter_alignment_on_call
You can’t perform that action at this time.
0 commit comments