Skip to content

Commit 2012ab2

Browse files
committed
full circle back to where I started
1 parent a3336f2 commit 2012ab2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/license/RestGetLicenseAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
6969
"Including [accept_enterprise] in get license requests is deprecated."
7070
+ " The parameter will be removed in the next major version"
7171
);
72-
}
73-
if (request.paramAsBoolean("accept_enterprise", true) == false) { // consumes the parameter to avoid error
74-
throw new IllegalArgumentException("The [accept_enterprise] parameters may not be false");
72+
if (request.paramAsBoolean("accept_enterprise", true) == false) { // consumes the parameter to avoid error
73+
throw new IllegalArgumentException("The [accept_enterprise] parameters may not be false");
74+
}
7575
}
7676

7777
final ToXContent.Params params = new ToXContent.DelegatingMapParams(overrideParams, request);

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rest/action/RestXPackInfoAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client
5555
"Including [accept_enterprise] in get license requests is deprecated."
5656
+ " The parameter will be removed in the next major version"
5757
);
58-
}
59-
if (request.paramAsBoolean("accept_enterprise", true) == false) { // consumes the parameter to avoid error
60-
throw new IllegalArgumentException("The [accept_enterprise] parameters may not be false");
58+
if (request.paramAsBoolean("accept_enterprise", true) == false) { // consumes the parameter to avoid error
59+
throw new IllegalArgumentException("The [accept_enterprise] parameters may not be false");
60+
}
6161
}
6262

6363
EnumSet<XPackInfoRequest.Category> categories = XPackInfoRequest.Category.toSet(

0 commit comments

Comments
 (0)