diff --git a/src/java/org/apache/commons/lang/exception/NestableError.java b/src/java/org/apache/commons/lang/exception/NestableError.java index 64f2d31f6..899bdbfe1 100644 --- a/src/java/org/apache/commons/lang/exception/NestableError.java +++ b/src/java/org/apache/commons/lang/exception/NestableError.java @@ -121,9 +121,8 @@ public class NestableError extends Error implements Nestable { public String getMessage(int index) { if (index == 0) { return super.getMessage(); - } else { - return delegate.getMessage(index); } + return delegate.getMessage(index); } /**