mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Remove Swiftlint warnings
This commit is contained in:
1 parent
d93b2f16e4
commit
eb6895207e
5 files changed
+9
-9
No files matched your search
@@ -9,12 +9,12 @@ public struct Configuration {
|
||||
/// If true, foreign key constraints are checked.
|
||||
///
|
||||
/// Default: true
|
||||
public var foreignKeysEnabled: Bool = true
|
||||
public var foreignKeysEnabled = true
|
||||
|
||||
/// If true, database modifications are disallowed.
|
||||
///
|
||||
/// Default: false
|
||||
public var readonly: Bool = false
|
||||
public var readonly = false
|
||||
|
||||
/// The configuration label.
|
||||
///
|
||||
@@ -175,7 +175,7 @@ public struct Configuration {
|
||||
/// never allow leaving a transaction opened at the end of a read access.
|
||||
///
|
||||
/// Default: false
|
||||
public var allowsUnsafeTransactions: Bool = false
|
||||
public var allowsUnsafeTransactions = false
|
||||
|
||||
// MARK: - Concurrency
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
|
||||
|
||||
/// If true, select statement execution is recorded.
|
||||
/// Use recordingSelectedRegion(_:), see `statementWillExecute(_:)`
|
||||
var _isRecordingSelectedRegion: Bool = false
|
||||
var _isRecordingSelectedRegion = false
|
||||
var _selectedRegion = DatabaseRegion()
|
||||
|
||||
/// Support for checkForAbortedTransaction()
|
||||
@@ -183,7 +183,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
|
||||
private var functions = Set<DatabaseFunction>()
|
||||
private var collations = Set<DatabaseCollation>()
|
||||
private var _readOnlyDepth = 0 // Modify with beginReadOnly/endReadOnly
|
||||
private var isClosed: Bool = false
|
||||
private var isClosed = false
|
||||
|
||||
// MARK: - Initializer
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public final class Statement {
|
||||
|
||||
/// If true, the database schema cache gets invalidated after this statement
|
||||
/// is executed.
|
||||
private(set) var invalidatesDatabaseSchemaCache: Bool = false
|
||||
private(set) var invalidatesDatabaseSchemaCache = false
|
||||
private(set) var transactionEffect: TransactionEffect?
|
||||
private(set) var databaseEventKinds: [DatabaseEventKind] = []
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ class DatabaseObservationBroker {
|
||||
private var statementObservations: [StatementObservation] = [] {
|
||||
didSet { observesDatabaseChanges = !statementObservations.isEmpty }
|
||||
}
|
||||
private var observesDatabaseChanges: Bool = false {
|
||||
private var observesDatabaseChanges = false {
|
||||
didSet {
|
||||
if observesDatabaseChanges == oldValue { return }
|
||||
if observesDatabaseChanges {
|
||||
@@ -796,7 +796,7 @@ final class TransactionObservation {
|
||||
|
||||
// A disabled observation is not interested in individual database changes.
|
||||
// It is still interested in transactions commits & rollbacks.
|
||||
var isDisabled: Bool = false
|
||||
var isDisabled = false
|
||||
|
||||
private weak var weakObserver: TransactionObserver?
|
||||
private var strongObserver: TransactionObserver?
|
||||
|
||||
@@ -32,7 +32,7 @@ public struct ValueObservation<Reducer: ValueReducer> {
|
||||
///
|
||||
/// Don't set this flag to true unless you really need it. A read/write
|
||||
/// observation is less efficient than a read-only observation.
|
||||
public var requiresWriteAccess: Bool = false
|
||||
public var requiresWriteAccess = false
|
||||
|
||||
/// Returns a ValueObservation with a transformed reducer.
|
||||
func mapReducer<R>(_ transform: @escaping (Reducer) -> R) -> ValueObservation<R> {
|
||||
|
||||
Reference in new issue
Block a user