Simplify
diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
index 218fab9..08f038a 100644
--- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
+++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
@@ -238,9 +238,8 @@ public static Throwable getRootCause(final Throwable throwable) {
* @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);
}
/**