[TEST] move variable assignment one line above

This commit is contained in:
javanna 2015-10-06 16:00:06 +02:00 committed by Luca Cavanna
parent fcc60609ae
commit c2fc65352a
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ public class CountRequestTests extends ESTestCase {
if (randomBoolean()) {
countRequest.preference(randomAsciiOfLengthBetween(1, 10));
}
final boolean querySet;
if (querySet = randomBoolean()) {
final boolean querySet = randomBoolean();
if (querySet) {
countRequest.query(QueryBuilders.termQuery("field", "value"));
}
if (randomBoolean()) {