File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
readium/shared/src/main/java/org/readium/r2/shared/util Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public sealed class Try<out Success, out Failure> {
6868 public inline fun <F > mapFailure (transform : (value: Failure ) -> F ): Try <Success , F > =
6969 when (this ) {
7070 is Try .Success -> success(value)
71- is Try .Failure -> failure(transform(failureOrNull()!! ))
71+ is Try .Failure -> failure(transform(failureOrNull()))
7272 }
7373
7474 /* *
@@ -81,7 +81,7 @@ public sealed class Try<out Success, out Failure> {
8181 ): R =
8282 when (this ) {
8383 is Try .Success -> onSuccess(value)
84- is Try .Failure -> onFailure(failureOrNull()!! )
84+ is Try .Failure -> onFailure(failureOrNull())
8585 }
8686
8787 /* *
@@ -98,7 +98,7 @@ public sealed class Try<out Success, out Failure> {
9898 * Returns the original [Try] unchanged.
9999 */
100100 public inline fun onFailure (action : (exception: Failure ) -> Unit ): Try <Success , Failure > {
101- if (this is Try .Failure ) action(failureOrNull()!! )
101+ if (this is Try .Failure ) action(failureOrNull())
102102 return this
103103 }
104104}
You can’t perform that action at this time.
0 commit comments