From 36a6c4e212be0e962e4a1edb44ec397b998b1bd0 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 26 Jul 2023 17:10:12 -0400 Subject: [PATCH] spotlessApply Signed-off-by: Derek Ho --- .../dlic/rest/validation/AbstractConfigurationValidator.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java index 435afed890..c7a782b4e5 100644 --- a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java +++ b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java @@ -264,10 +264,7 @@ public XContentBuilder errorsAsXContent(RestChannel channel) { case WEAK_PASSWORD: case SIMILAR_PASSWORD: builder.field("status", "error"); - builder.field( - "reason", - errorType.message - ); + builder.field("reason", errorType.message); break; case WRONG_DATATYPE: builder.field("status", "error");