Skip to content

Commit

Permalink
Merge branch 'JENKINS-22641' of github.com:christ66/jenkins into JENK…
Browse files Browse the repository at this point in the history
  • Loading branch information
christ66 committed Jul 21, 2014
2 parents 0d4c0cb + 10466fe commit 9ac68b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/java/hudson/util/ProcessTree.java
Expand Up @@ -711,12 +711,10 @@ public synchronized EnvVars getEnvironmentVariables() {
}

public byte[] readFileToByteArray(File file) throws IOException {
InputStream in = null;
InputStream in = org.apache.commons.io.FileUtils.openInputStream(file);
try {
in = org.apache.commons.io.FileUtils.openInputStream(file);
return org.apache.commons.io.IOUtils.toByteArray(in);
} finally {
if (in != null)
in.close();
}
}
Expand Down

0 comments on commit 9ac68b9

Please sign in to comment.