Skip to content

Commit ae764b6

Browse files
authored
Fix ambiguous perform() fn in RequestBuilder (#18)
1 parent 374b13e commit ae764b6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/SwiftApiDsl/RequestBuilder.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ extension RequestBuilder: RequestModifiable {
3939

4040
public extension RequestBuilder {
4141

42-
func perform() async throws {
43-
_ = try await apiClient.perform(modifier: modifier, bypassAuth: bypassAuth, extraValidator: extraValidator)
44-
}
45-
42+
@discardableResult
4643
func perform() async throws -> Response<Data> {
4744
try await apiClient.perform(modifier: modifier, bypassAuth: bypassAuth, extraValidator: extraValidator).response
4845
}

0 commit comments

Comments
 (0)