Skip to content

Commit 30648bc

Browse files
committed
Allows discarding result where only a response is generated
1 parent a1c27ef commit 30648bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Endpoints/EndpointService.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public final class EndpointService {
2525
}
2626

2727
public extension EndpointService {
28+
@discardableResult
2829
func perform<E>(_ endpoint: E) async throws -> HTTPURLResponse where E: Endpoint {
2930
try await perform(endpoint, data: nil).1
3031
}

0 commit comments

Comments
 (0)