aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java
index cafc94057b..779bdfcf55 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java
@@ -142,13 +142,7 @@ public class IO {
throw new IOException(MessageFormat.format(
JGitText.get().fileIsTooLarge, path));
final byte[] buf = new byte[(int) sz];
- int actSz = IO.readFully(in, buf, 0);
-
- if (actSz == sz) {
- byte[] ret = new byte[actSz];
- System.arraycopy(buf, 0, ret, 0, actSz);
- return ret;
- }
+ IO.readFully(in, buf, 0);
return buf;
} finally {
try {