Skip to content

Commit b798f89

Browse files
committed
overwrite loadData only when configured to
1 parent 0269917 commit b798f89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lighthouse-core/gather/gather-runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ class GatherRunner {
206206
.then(_ => this.afterPass(runOptions))
207207
.then(loadData => {
208208
// Merge pass trace and network data into tracingData.
209-
Object.assign(tracingData.traces, loadData.traces);
210-
tracingData.networkRecords = loadData.networkRecords;
209+
config.trace && Object.assign(tracingData.traces, loadData.traces);
210+
config.network && (tracingData.networkRecords = loadData.networkRecords);
211211
})
212212
.then(_ => this.tearDown(runOptions));
213213
}, Promise.resolve());

0 commit comments

Comments
 (0)