Skip to content

Commit

Permalink
Fix the global operator and mapper doesn't applied for the exception …
Browse files Browse the repository at this point in the history
…factory
  • Loading branch information
skydoves committed Apr 24, 2024
1 parent 1bc51a2 commit e11e176
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public sealed interface ApiResponse<out T> {
* @return A [ApiResponse.Failure.Exception] based on the throwable.
*/
public fun exception(ex: Throwable): Failure.Exception =
Failure.Exception(ex).apply { operate().maps() }
Failure.Exception(ex).operate().maps() as Failure.Exception

/**
* @author skydoves (Jaewoong Eum)
Expand Down

0 comments on commit e11e176

Please sign in to comment.