Simplify
This commit is contained in:
parent
b01d56ddea
commit
8d6e743748
|
@ -238,9 +238,8 @@ public class ExceptionUtils {
|
|||
* @since 2.2
|
||||
*/
|
||||
public static String getRootCauseMessage(final Throwable throwable) {
|
||||
Throwable root = getRootCause(throwable);
|
||||
root = root == null ? throwable : root;
|
||||
return getMessage(root);
|
||||
final Throwable root = getRootCause(throwable);
|
||||
return getMessage(root == null ? throwable : root);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue