Skip to content

Commit 053388e

Browse files
author
Vladimir Kotal
committed
use ==
1 parent 2123e36 commit 053388e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public void invalidateRepositories(Collection<? extends RepositoryInfo> repos, C
817817
final CountDownLatch latch = new CountDownLatch(repos.size());
818818
int parallelismLevel;
819819
// Both indexer and web app startup should be as quick as possible.
820-
if (cmdType.equals(CommandTimeoutType.INDEXER) || cmdType.equals(CommandTimeoutType.WEBAPP_START)) {
820+
if (cmdType == CommandTimeoutType.INDEXER || cmdType == CommandTimeoutType.WEBAPP_START) {
821821
parallelismLevel = env.getIndexingParallelism();
822822
} else {
823823
parallelismLevel = env.getRepositoryInvalidationParallelism();

0 commit comments

Comments
 (0)