Skip to content

Commit

Permalink
Sonar: Remove useless curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert authored and deepu105 committed Aug 20, 2023
1 parent 1af3332 commit ac49c9d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ _%>
<%_ } _%>
<%_ } else { %>
<%- returnPrefix %> <%= entityInstance %>Repository.findById(<%= instanceName %>.get<%= primaryKey.nameCapitalized %>())
<%_ if (dtoMapstruct || fields.filter(field => !field.id && !field.transient).length > 0) { _%>
.map(existing<%= entityClass %> -> {
<%_ if (dtoMapstruct) { _%>
<%= mapper %>.partialUpdate(existing<%= entityClass %>, <%= instanceName %>);
Expand All @@ -49,6 +50,7 @@ _%>
<% } %>
return existing<%= entityClass %>;
})
<%_ } %>
<% if (!updatableEntity) { %>// <%} %>.<%= mapOrFlatMap %>(<%= entityInstance %>Repository::save)
<%_ if (searchEngineElasticsearch) { _%>
.<%= mapOrFlatMap %>(saved<%= entityClass %> -> {
Expand Down

0 comments on commit ac49c9d

Please sign in to comment.