Skip to content

Commit 21b1322

Browse files
committed
Fix Swiftlint warnings
1 parent 819f457 commit 21b1322

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

GRDB/Core/Statement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}()

GRDB/ValueObservation/Observers/ValueConcurrentObserver.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

Scripts/swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)