Skip to content

Commit

Permalink
fix(views): use concat instead of push with spread operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Mar 3, 2022
1 parent 9300f52 commit 79282df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export class MetricStorageRegistry {
private readonly _metricStorageRegistry = new Map<string, MetricStorage[]>();

getStorages(): MetricStorage[] {
const storages = [];
const storages: MetricStorage[] = [];
for (const metricStorages of Array.from(this._metricStorageRegistry.values())) {
storages.push(...metricStorages);
storages.concat(metricStorages);
}

return storages;
Expand Down

0 comments on commit 79282df

Please sign in to comment.