Skip to content

Commit b1860bc

Browse files
author
Vladimir Kotal
committed
use +=
1 parent 04df31a commit b1860bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
320320
} else {
321321
errorMsg = "Failed to initialize search. Check the index";
322322
if (projects.size() > 0) {
323-
errorMsg = errorMsg + " for projects: " + String.join(", ", projects);
323+
errorMsg += " for projects: " + String.join(", ", projects);
324324
}
325325
return this;
326326
}
@@ -348,9 +348,9 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
348348
} catch (FileNotFoundException e) {
349349
errorMsg = "Index database not found. Check the index";
350350
if (projects.size() > 0) {
351-
errorMsg = errorMsg + " for projects: " + String.join(", ", projects);
351+
errorMsg += " for projects: " + String.join(", ", projects);
352352
}
353-
errorMsg = errorMsg + "; " + e.getMessage();
353+
errorMsg += "; " + e.getMessage();
354354
} catch (IOException e) {
355355
errorMsg = e.getMessage();
356356
}

0 commit comments

Comments
 (0)