Skip to content

Commit

Permalink
Fix sonar: 'Expected a for-of loop instead of a for loop with this si…
Browse files Browse the repository at this point in the history
…mple iteration' (#14293)
  • Loading branch information
qmonmert authored Mar 13, 2021
1 parent fa96b13 commit 4050265
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export class <%= entityAngularName %>Component implements OnInit {
protected paginate<%= entityClassPlural %>(data: I<%= entityAngularName %>[] | null, headers: HttpHeaders): void {
this.links = this.parseLinks.parse(headers.get('link') ?? '');
if (data) {
for (let i = 0; i < data.length; i++) {
this.<%= entityInstancePlural %>.push(data[i]);
for (const d of data) {
this.<%= entityInstancePlural %>.push(d);
}
}
}
Expand Down

0 comments on commit 4050265

Please sign in to comment.