Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1565255 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/commons/fileupload/MockHttpServletRequest.java b/src/test/java/org/apache/commons/fileupload/MockHttpServletRequest.java
index 415764e..f324929 100644
--- a/src/test/java/org/apache/commons/fileupload/MockHttpServletRequest.java
+++ b/src/test/java/org/apache/commons/fileupload/MockHttpServletRequest.java
@@ -509,9 +509,8 @@
public int read(byte b[], int off, int len) throws IOException {
if (readLimit > 0) {
return in.read(b, off, Math.min(readLimit, len));
- } else {
- return in.read(b, off, len);
}
+ return in.read(b, off, len);
}
}