Skip to content

Commit

Permalink
chore: fix build by defining closure return type (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Nov 5, 2023
1 parent 68742e9 commit 2afb40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/PostgREST/PostgrestClient.swift
Expand Up @@ -127,13 +127,13 @@ struct PostgrestAPIClientDelegate: APIClientDelegate {
}

private func query(_ parameters: [(String, String?)]) -> String {
parameters.compactMap { key, value in
parameters.compactMap { key, value -> (String, String)? in
if let value {
return (key, value)
}
return nil
}
.map { key, value in
.map { key, value -> String in
let escapedKey = escape(key)
let escapedValue = escape(value)
return "\(escapedKey)=\(escapedValue)"
Expand Down
2 changes: 1 addition & 1 deletion Tests/PostgRESTTests/BuildURLRequestTests.swift
Expand Up @@ -96,7 +96,7 @@
.select()
.gt(column: "received_at", value: "2023-03-23T15:50:30.511743+00:00")
.order(column: "received_at")
}
},
]

for testCase in testCases {
Expand Down

0 comments on commit 2afb40a

Please sign in to comment.