Skip to content

Commit

Permalink
Replace Object.keys() with for..in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 2, 2025
1 parent 11bedb6 commit 7ef2843
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions static/resources/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,10 @@
renderHarnessLink(resultsEl);

// Render code and support for reusable instances
var reInstKeys = Object.keys(reusableInstances.__sources);
for (var i = 0; i < reInstKeys.length; i++) {
renderReInstReportEl(reInstKeys[i], resultsEl);
for (var key in reusableInstances.__sources) {
if (Object.prototype.hasOwnProperty.call(reusableInstances.__sources, key)) {
renderReInstReportEl(reusableInstances.__sources[key], resultsEl);
}
}

// Add divider
Expand Down

0 comments on commit 7ef2843

Please sign in to comment.