Skip to content

Commit c5a808b

Browse files
author
Vladimir Kotal
committed
merge lines
1 parent 6107211 commit c5a808b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

opengrok-web/src/main/webapp/list.jsp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,10 @@ document.pageReady.push(function() { pageReadyList();});
234234
} else if (rev.length() != 0) {
235235
// requesting a revision
236236
File xrefFile;
237-
if (cfg.isLatestRevision(rev) &&
238-
(xrefFile = cfg.findDataFile()) != null) {
237+
if (cfg.isLatestRevision(rev) && (xrefFile = cfg.findDataFile()) != null) {
239238
if (cfg.annotate()) {
240239
// annotate
241-
BufferedInputStream bin =
242-
new BufferedInputStream(new FileInputStream(resourceFile));
240+
BufferedInputStream bin = new BufferedInputStream(new FileInputStream(resourceFile));
243241
try {
244242
AnalyzerFactory a = AnalyzerGuru.find(basename);
245243
AbstractAnalyzer.Genre g = AnalyzerGuru.getGenre(a);
@@ -301,7 +299,8 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
301299
</div><%
302300
}
303301
} else {
304-
// requesting a previous revision or needed to generate xref on the fly (economy mode).
302+
// requesting a previous revision or needed to generate xref on the fly
303+
// (either economy mode is enabled or the cfg.findDataFile() call above failed).
305304
AnalyzerFactory a = AnalyzerGuru.find(basename);
306305
Genre g = AnalyzerGuru.getGenre(a);
307306
String error = null;

0 commit comments

Comments
 (0)