Skip to content

Commit 2afb40a

Browse files
authored
chore: fix build by defining closure return type (#53)
1 parent 68742e9 commit 2afb40a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/PostgREST/PostgrestClient.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ struct PostgrestAPIClientDelegate: APIClientDelegate {
127127
}
128128

129129
private func query(_ parameters: [(String, String?)]) -> String {
130-
parameters.compactMap { key, value in
130+
parameters.compactMap { key, value -> (String, String)? in
131131
if let value {
132132
return (key, value)
133133
}
134134
return nil
135135
}
136-
.map { key, value in
136+
.map { key, value -> String in
137137
let escapedKey = escape(key)
138138
let escapedValue = escape(value)
139139
return "\(escapedKey)=\(escapedValue)"

Tests/PostgRESTTests/BuildURLRequestTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
.select()
9797
.gt(column: "received_at", value: "2023-03-23T15:50:30.511743+00:00")
9898
.order(column: "received_at")
99-
}
99+
},
100100
]
101101

102102
for testCase in testCases {

0 commit comments

Comments
 (0)