Skip to content

Commit

Permalink
As @nknize pointed contributors must use explicit logic instead of ne…
Browse files Browse the repository at this point in the history
…gations;

Signed-off-by: Hauck <joaoh14@gmail.com>
  • Loading branch information
hauck-jvsh committed Sep 14, 2022
1 parent 0d2f3fd commit 884688c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void parse(ParseContext context) throws IOException {
valuePreview = complexValue.toString();
}
} catch (Exception innerException) {
if (!ignore_malformed) {
if (ignore_malformed == false) {
throw new MapperParsingException(
"failed to parse field [{}] of type [{}] in document with id '{}'. " + "Could not parse field value preview,",
e,
Expand All @@ -292,7 +292,7 @@ public void parse(ParseContext context) throws IOException {
}
}

if (!ignore_malformed) {
if (ignore_malformed == false) {
throw new MapperParsingException(
"failed to parse field [{}] of type [{}] in document with id '{}'. " + "Preview of field's value: '{}'",
e,
Expand Down

0 comments on commit 884688c

Please sign in to comment.