Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Jul 8, 2024
1 parent f3e7606 commit a1d51b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ public Template build() {
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
XContentBuilder xContentBuilder = builder.startObject();
xContentBuilder.field(NAME_FIELD, this.name);
xContentBuilder.field(DESCRIPTION_FIELD, this.description == null ? "" : this.description);
xContentBuilder.field(USE_CASE_FIELD, this.useCase == null ? "" : this.useCase);
xContentBuilder.field(NAME_FIELD, this.name.trim());
xContentBuilder.field(DESCRIPTION_FIELD, this.description == null ? "" : this.description.trim());
xContentBuilder.field(USE_CASE_FIELD, this.useCase == null ? "" : this.useCase.trim());

if (this.templateVersion != null || !this.compatibilityVersion.isEmpty()) {
xContentBuilder.startObject(VERSION_FIELD);
Expand Down

0 comments on commit a1d51b6

Please sign in to comment.