Skip to content

Commit aea1e3b

Browse files
committed
Merge pull request #3144 from artem-zinnatullin/remove-redundant-cast-in-exceptions
Remove redundant cast in Exceptions
2 parents f20d3b5 + 620981a commit aea1e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/rx/exceptions/Exceptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static void throwIfFatal(Throwable t) {
7777
if (t instanceof OnErrorNotImplementedException) {
7878
throw (OnErrorNotImplementedException) t;
7979
} else if (t instanceof OnErrorFailedException) {
80-
Throwable cause = ((OnErrorFailedException) t).getCause();
80+
Throwable cause = t.getCause();
8181
if (cause instanceof RuntimeException) {
8282
throw (RuntimeException) cause;
8383
} else {

0 commit comments

Comments
 (0)