We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8d7f4 commit 44b5fcdCopy full SHA for 44b5fcd
Sources/Retry/Retry.swift
@@ -17,7 +17,7 @@ import Foundation
17
18
public enum Retry {
19
public enum Error: Swift.Error {
20
- case abort(with: Swift.Error? = nil)
+ case abort(with: Swift.Error)
21
case retryLimitExceeded(lastError: Swift.Error? = nil)
22
}
23
Tests/RetryTests/RetryTests.swift
@@ -89,7 +89,7 @@ final class RetryTests: XCTestCase {
89
throw Retry.Error.abort(with: Error())
90
91
XCTFail("expected an error to be thrown")
92
- } catch let Retry.Error.abort(with: .some(error)) {
+ } catch let Retry.Error.abort(with: error) {
93
XCTAssertEqual("\(error)", "test error")
94
} catch {
95
XCTFail("unexpected error: \(error)")
0 commit comments