Skip to content

Commit f58a64e

Browse files
AssertionErrorCreator: Fix TODO
1 parent 934438f commit f58a64e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/assertj/core/error/AssertionErrorCreator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ private Optional<AssertionError> assertionFailedError(String message, Object act
5959
AssertionError assertionError = (AssertionError) o;
6060
return Optional.of(assertionError);
6161
}
62-
// TODO: single return
63-
return Optional.empty();
64-
} catch (Throwable e) {
65-
return Optional.empty();
62+
} catch (Throwable ignored) {
6663
}
64+
return Optional.empty();
6765
}
6866

6967
private static AssertionError assertionError(String message) {

0 commit comments

Comments
 (0)