HLRC: Drop extra level from user parser (#34932)

It had support for an object between `created` and the root that we
don't return in 7.0+.
This commit is contained in:
Nik Everett 2018-10-26 20:42:18 -04:00 committed by GitHub
parent 544c220942
commit 277f49b9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -62,7 +62,6 @@ public final class PutUserResponse {
static {
PARSER.declareBoolean(constructorArg(), new ParseField("created"));
PARSER.declareObject((a,b) -> {}, (parser, context) -> null, new ParseField("user")); // ignore the user field!
}
public static PutUserResponse fromXContent(XContentParser parser) throws IOException {