Skip to content

Commit 9dd7732

Browse files
authored
Discard changes to Sources/AsyncHTTPClient/AsyncAwait/Transaction.swift
1 parent 2f70851 commit 9dd7732

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Sources/AsyncHTTPClient/AsyncAwait/Transaction.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import NIOCore
1818
import NIOHTTP1
1919
import NIOSSL
2020

21-
#if TracingSupport
22-
import Tracing
23-
#endif // TracingSupport
24-
2521
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2622
@usableFromInline
2723
final class Transaction:
@@ -55,8 +51,7 @@ final class Transaction:
5551
}
5652

5753
func cancel() {
58-
let error = CancellationError()
59-
self.fail(error)
54+
self.fail(CancellationError())
6055
}
6156

6257
// MARK: Request body helpers

0 commit comments

Comments
 (0)