Skip to content

Commit 98d83a2

Browse files
committed
fix linting
1 parent 10b48b2 commit 98d83a2

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

Sources/SQLite/Typed/Query.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ extension Connection {
10551055
}
10561056

10571057
func expandGlob(_ namespace: Bool) -> (QueryType) throws -> Void {
1058-
{ (queryType: QueryType) throws -> Void in
1058+
{ (queryType: QueryType) throws in
10591059
var query = type(of: queryType).init(queryType.clauses.from.name, database: queryType.clauses.from.database)
10601060
query.clauses.select = queryType.clauses.select
10611061
query.clauses.with = strip(queryType.clauses.with)

Sources/SQLite/Typed/Schema.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ extension Table {
135135
}
136136

137137
// MARK: - CREATE INDEX
138-
138+
139139
public func createIndex(_ columns: [Expressible], unique: Bool = false, ifNotExists: Bool = false) -> String {
140140
let clauses: [Expressible?] = [
141141
create("INDEX", indexName(columns), unique ? .unique : nil, ifNotExists),
@@ -146,17 +146,17 @@ extension Table {
146146

147147
return " ".join(clauses.compactMap { $0 }).asSQL()
148148
}
149-
149+
150150
public func createIndex(_ columns: Expressible..., unique: Bool = false, ifNotExists: Bool = false) -> String {
151151
return createIndex(Array(columns), unique: unique, ifNotExists: ifNotExists)
152152
}
153153

154154
// MARK: - DROP INDEX
155-
155+
156156
public func dropIndex(_ columns: [Expressible], ifExists: Bool = false) -> String {
157157
drop("INDEX", indexName(columns), ifExists)
158158
}
159-
159+
160160
public func dropIndex(_ columns: Expressible..., ifExists: Bool = false) -> String {
161161
dropIndex(Array(columns), ifExists: ifExists)
162162
}

Tests/SQLiteTests/TestHelpers.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,4 @@ struct TestOptionalCodable: Codable, Equatable {
164164
let double: Double?
165165
let date: Date?
166166
let uuid: UUID?
167-
168-
init(int: Int?, string: String?, bool: Bool?, float: Float?, double: Double?, date: Date?, uuid: UUID?) {
169-
self.int = int
170-
self.string = string
171-
self.bool = bool
172-
self.float = float
173-
self.double = double
174-
self.date = date
175-
self.uuid = uuid
176-
}
177167
}

0 commit comments

Comments
 (0)