diff --git a/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java b/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java index 5a35af807..a1cc45a44 100644 --- a/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java +++ b/src/java/org/apache/commons/lang/exception/NestableRuntimeException.java @@ -125,9 +125,8 @@ public class NestableRuntimeException extends RuntimeException implements Nestab public String getMessage(int index) { if (index == 0) { return super.getMessage(); - } else { - return delegate.getMessage(index); } + return delegate.getMessage(index); } /**