From 1c1bae694e7368fc95b926ef1c109f8c007b1d0f Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Mon, 21 Aug 2023 14:53:45 -0700 Subject: [PATCH] Remove the null check in oboconfig Signed-off-by: Ryan Liang --- .../java/org/opensearch/test/framework/OnBehalfOfConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java index a374471ce3..73ff55392d 100644 --- a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java +++ b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java @@ -40,7 +40,7 @@ public OnBehalfOfConfig encryptionKey(String encryption_key) { @Override public XContentBuilder toXContent(XContentBuilder xContentBuilder, ToXContent.Params params) throws IOException { xContentBuilder.startObject(); - if (oboEnabled || oboEnabled == null) { + if (oboEnabled) { xContentBuilder.field("enabled", oboEnabled); } xContentBuilder.field("signing_key", signing_key);