File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
opengrok-web/src/main/webapp Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,10 @@ document.pageReady.push(function() { pageReadyList();});
234
234
} else if (rev. length() != 0 ) {
235
235
// requesting a revision
236
236
File xrefFile;
237
- if (cfg. isLatestRevision(rev) &&
238
- (xrefFile = cfg. findDataFile()) != null ) {
237
+ if (cfg. isLatestRevision(rev) && (xrefFile = cfg. findDataFile()) != null ) {
239
238
if (cfg. annotate()) {
240
239
// annotate
241
- BufferedInputStream bin =
242
- new BufferedInputStream (new FileInputStream (resourceFile));
240
+ BufferedInputStream bin = new BufferedInputStream (new FileInputStream (resourceFile));
243
241
try {
244
242
AnalyzerFactory a = AnalyzerGuru . find(basename);
245
243
AbstractAnalyzer . Genre g = AnalyzerGuru . getGenre(a);
@@ -301,7 +299,8 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
301
299
</div ><%
302
300
}
303
301
} 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).
305
304
AnalyzerFactory a = AnalyzerGuru . find(basename);
306
305
Genre g = AnalyzerGuru . getGenre(a);
307
306
String error = null ;
You can’t perform that action at this time.
0 commit comments