This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 8d6e74374 Simplify 8d6e74374 is described below commit 8d6e7437480692d62e7b6402fc1a1ccc8ab032aa Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 4 16:21:54 2022 -0400 Simplify --- src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 218fab913..08f038af9 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 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); } /**