Skip to content

Commit

Permalink
Remove the null check in oboconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Aug 22, 2023
1 parent 7e3824e commit 1c1bae6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c1bae6

Please sign in to comment.