Skip to content

Commit

Permalink
pr feedback changes
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <[email protected]>
  • Loading branch information
nknize committed Feb 15, 2022
1 parent 587248a commit 6a23992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ public Failure(StreamInput in) throws IOException {
index = in.readString();
if (in.getVersion().before(Version.V_2_0_0)) {
// ignore removed type from pre-2.0.0 versions
String type = in.readOptionalString();
if (type != null) {
throw new IllegalStateException("types are no longer supported but found [" + type + "]");
}
in.readOptionalString();
}
id = in.readString();
cause = in.readException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ public Item(@Nullable String index, XContentBuilder doc) {
index = in.readOptionalString();
if (in.getVersion().before(Version.V_2_0_0)) {
// types no longer supported so ignore
String type = in.readOptionalString();
if (type != null) {
throw new IllegalStateException("types are no longer supported but found [" + type + "]");
}
in.readOptionalString();
}
if (in.readBoolean()) {
doc = (BytesReference) in.readGenericValue();
Expand Down

0 comments on commit 6a23992

Please sign in to comment.