Skip to content

Commit

Permalink
Sonar: Remove this unused method parameter em
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed May 17, 2024
1 parent 9c885f1 commit 02c1de5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ filterTestableRelationships.forEach((relationship) => { _%>
* This is a static method, as tests for other entities might also need it,
* if they test an entity which requires the current entity.
*/
public static <%= persistClass %> create<% if (fieldStatus === 'UPDATED_') { _%>Updated<%_ } %>Entity(<% if (databaseTypeSql) { %>EntityManager em<% } %>) {
public static <%= persistClass %> create<% if (fieldStatus === 'UPDATED_') { _%>Updated<%_ } %>Entity(<% if (databaseTypeSql && persistableRelationships.length > 0) { %>EntityManager em<% } %>) {
<%_ if (fluentMethods) { _%>
<%= persistClass %> <%= persistInstance %> = new <%= persistClass %>()
<%_ if (reactive && databaseTypeSql && primaryKey.typeUUID && !isUsingMapsId) { _%>
Expand Down Expand Up @@ -648,7 +648,7 @@ _%>
<%_ } else if (databaseTypeSql && reactive) { _%>
deleteEntities(em);
<%_ } _%>
<%= persistInstance %> = createEntity(<% if (databaseTypeSql) { %>em<% } %>);
<%= persistInstance %> = createEntity(<% if (databaseTypeSql && persistableRelationships.length > 0) { %>em<% } %>);
}
<%_ if (!readOnly) { _%>

Expand Down

0 comments on commit 02c1de5

Please sign in to comment.