Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Bonifacio committed Oct 5, 2023
1 parent 5e7e0b0 commit 7d5592d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Try<T> filter(Predicate<? super T> p) {

@Override
public Try<T> recover(Function<? super Throwable, T> fn) {
return of(() -> fn.apply(getCause()));
return Try.of(() -> fn.apply(getCause()));
}

@Override
Expand Down

0 comments on commit 7d5592d

Please sign in to comment.