Move bracket

(Matches part of a change made to 5.5/5.x that doesn't need fully forward
porting.)

Original commit: elastic/x-pack-elasticsearch@01f0837e6c
This commit is contained in:
David Roberts 2017-06-08 18:01:58 +01:00
parent 7cb1c8bd35
commit 64330ff14d

View File

@ -84,8 +84,7 @@ public class UpgradeClusterClientYamlTestSuiteIT extends SecurityClusterClientYa
AtomicReference<IOException> exceptionHolder = new AtomicReference<>();
awaitBusy(() -> {
try {
ClientYamlTestResponse response = getAdminExecutionContext().callApi(apiName, params, bodies, Collections.emptyMap()
);
ClientYamlTestResponse response = getAdminExecutionContext().callApi(apiName, params, bodies, Collections.emptyMap());
if (response.getStatusCode() == HttpStatus.SC_OK) {
exceptionHolder.set(null);
return success.apply(response);