Skip to content

Commit c659dc9

Browse files
author
Justin Meiners
committed
Fix lint issues
1 parent 55bf2c1 commit c659dc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/SQLite/Typed/Query.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,18 +1169,18 @@ public struct Row {
11691169
}
11701170

11711171
guard let idx = columnNames[column.template] else {
1172-
func similar(_ s: String) -> Bool {
1173-
return s.hasSuffix(".\(column.template)")
1172+
func similar(_ name: String) -> Bool {
1173+
return name.hasSuffix(".\(column.template)")
11741174
}
1175-
1175+
11761176
guard let firstIndex = columnNames.firstIndex(where: { similar($0.key) }) else {
11771177
throw QueryError.noSuchColumn(name: column.template, columns: columnNames.keys.sorted())
11781178
}
1179-
1179+
11801180
let secondIndex = columnNames
11811181
.suffix(from: columnNames.index(after: firstIndex))
11821182
.firstIndex(where: { similar($0.key) })
1183-
1183+
11841184
guard secondIndex == nil else {
11851185
throw QueryError.ambiguousColumn(
11861186
name: column.template,

0 commit comments

Comments
 (0)