Skip to content

Commit

Permalink
fix(metrics service): replace object iterator with Object.values
Browse files Browse the repository at this point in the history
  • Loading branch information
gilest authored and jherdman committed Nov 22, 2021
1 parent 6196976 commit 262b9f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addon/services/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ export default class Metrics extends Service {
* @return {Void}
*/
willDestroy() {
for (let adapter of this._adapters) {
adapter.destroy();
}
Object.values(this._adapters).forEach((adapter) => adapter.destroy());
}
}

Expand Down

0 comments on commit 262b9f9

Please sign in to comment.