SOLR-10643: SOLR-10745: Remove unnecessary check for locked. It is always true.

This commit is contained in:
Shalin Shekhar Mangar 2017-07-05 06:26:15 +05:30
parent 3bf6e6fc6d
commit 2bd9347c75
1 changed files with 2 additions and 6 deletions

View File

@ -271,9 +271,7 @@ public class TriggerIntegrationTest extends SolrCloudTestCase {
fail("Trigger should not have fired more than once!");
}
} finally {
if (locked) {
lock.unlock();
}
lock.unlock();
}
}
}
@ -815,9 +813,7 @@ public class TriggerIntegrationTest extends SolrCloudTestCase {
log.debug("--throwable", t);
throw t;
} finally {
if (locked) {
lock.unlock();
}
lock.unlock();
}
}