Skip to content

Commit a20d692

Browse files
Vladimir Kotalahornace
authored andcommitted
coalesce
1 parent ddad4e6 commit a20d692

File tree

1 file changed

+2
-4
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/web

1 file changed

+2
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Util.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,12 +1211,10 @@ public static boolean dumpXref(Writer out, File file, boolean compressed, String
12111211
* For backward compatibility, read the OpenGrok-produced document
12121212
* using the system default charset.
12131213
*/
1214-
try (InputStream iss = new BufferedInputStream(new FileInputStream(file))) {
1215-
try (Reader in = compressed ? new InputStreamReader(new GZIPInputStream(iss)) :
1216-
new InputStreamReader(iss)) {
1214+
try (InputStream iss = new BufferedInputStream(new FileInputStream(file));
1215+
Reader in = compressed ? new InputStreamReader(new GZIPInputStream(iss)) : new InputStreamReader(iss)) {
12171216
dumpXref(out, in, contextPath);
12181217
return true;
1219-
}
12201218
} catch (IOException e) {
12211219
LOGGER.log(Level.WARNING, "An error occurred while piping file " + file, e);
12221220
}

0 commit comments

Comments
 (0)