File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/web Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
319
319
searcher = new IndexSearcher (reader );
320
320
} else {
321
321
errorMsg = "Failed to initialize search. Check the index" ;
322
- if (projects .size () > 0 ) {
322
+ if (! projects .isEmpty () ) {
323
323
errorMsg += " for projects: " + String .join (", " , projects );
324
324
}
325
325
return this ;
@@ -347,7 +347,7 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
347
347
errorMsg = PARSE_ERROR_MSG + e .getMessage ();
348
348
} catch (FileNotFoundException e ) {
349
349
errorMsg = "Index database not found. Check the index" ;
350
- if (projects .size () > 0 ) {
350
+ if (! projects .isEmpty () ) {
351
351
errorMsg += " for projects: " + String .join (", " , projects );
352
352
}
353
353
errorMsg += "; " + e .getMessage ();
You can’t perform that action at this time.
0 commit comments