We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21d3d1c commit 1942a18Copy full SHA for 1942a18
1 file changed
Sources/Processed/Loadable/LoadableState.swift
@@ -138,7 +138,7 @@ extension LoadableState {
138
/// - Returns: A new `LoadableState` instance with the transformed value of type `T`,
139
/// or the same state if the current state is `absent`, `loading`, or `error`.
140
/// - Throws: Rethrows any error that the `transform` closure might throw.
141
- public func map<T>(_ transform: (Value) throws -> T) rethrows -> LoadableState<T>? {
+ public func map<T>(_ transform: (Value) throws -> T) rethrows -> LoadableState<T> {
142
return switch self {
143
case .absent: .absent
144
case .loading: .loading
0 commit comments