Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/core/engine/collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
}, {});
} else if (equals(keyPath.slice(-1), ['resourceTimings'])) {
return {};
} else if (equals(keyPath.slice(-2), ['timings', 'serverTimings'])) {
return value.reduce((result, timing) => {

Check failure on line 223 in lib/core/engine/collector.js

View workflow job for this annotation

GitHub Actions / build (24.x)

`Array#reduce()` is not allowed. Prefer other types of loop for readability

Check failure on line 223 in lib/core/engine/collector.js

View workflow job for this annotation

GitHub Actions / build (24.x)

Delete `··`
result[timing.name] = timing.duration;

Check failure on line 224 in lib/core/engine/collector.js

View workflow job for this annotation

GitHub Actions / build (24.x)

Delete `····`
return result;

Check failure on line 225 in lib/core/engine/collector.js

View workflow job for this annotation

GitHub Actions / build (24.x)

Delete `····`
}, {});

Check failure on line 226 in lib/core/engine/collector.js

View workflow job for this annotation

GitHub Actions / build (24.x)

Delete `··`
}
return value;
});
Expand Down
Loading