Skip to content

Commit c4bdad8

Browse files
committed
lint
1 parent ba5165a commit c4bdad8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/SQLite/Typed/Coding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private class SQLiteEncoder: Encoder {
233233
func encodeIfPresent(_ value: Float?, forKey key: Key) throws {
234234
if let value = value {
235235
encoder.setters.append(Expression(key.stringValue) <- Double(value))
236-
} else if forcingNilValueSetters{
236+
} else if forcingNilValueSetters {
237237
encoder.setters.append(Expression<Double?>(key.stringValue) <- nil)
238238
}
239239
}

Tests/SQLiteTests/QueryIntegrationTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ class QueryIntegrationTests: SQLiteTestCase {
142142
builder.column(Expression<UUID?>("uuid"))
143143
})
144144

145-
let value1 = TestOptionalCodable(int: 5, string: "6", bool: true, float: 7, double: 8, date: Date(timeIntervalSince1970: 5000), uuid: testUUIDValue)
145+
let value1 = TestOptionalCodable(int: 5, string: "6", bool: true, float: 7, double: 8,
146+
date: Date(timeIntervalSince1970: 5000), uuid: testUUIDValue)
146147
let valueWithNils = TestOptionalCodable(int: nil, string: nil, bool: nil, float: nil, double: nil, date: nil, uuid: nil)
147148
try db.run(table.insertMany([value1, valueWithNils]))
148149

0 commit comments

Comments
 (0)