Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Aug 21, 2020
1 parent b932491 commit 44872be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lighthouse-core/computed/module-duplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class ModuleDuplication {
* @param {Map<string, Array<{scriptUrl: string, resourceSize: number}>>} moduleNameToSourceData
*/
static _normalizeAggregatedData(moduleNameToSourceData) {
for (let [key, sourceData] of moduleNameToSourceData.entries()) {
for (const [key, originalSourceData] of moduleNameToSourceData.entries()) {
let sourceData = originalSourceData;

// Sort by resource size.
sourceData.sort((a, b) => b.resourceSize - a.resourceSize);

Expand Down

0 comments on commit 44872be

Please sign in to comment.