Skip to content

Commit

Permalink
overwrite loadData only when configured to
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Aug 10, 2016
1 parent 0269917 commit b798f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/gather/gather-runner.js
Expand Up @@ -206,8 +206,8 @@ class GatherRunner {
.then(_ => this.afterPass(runOptions))
.then(loadData => {
// Merge pass trace and network data into tracingData.
Object.assign(tracingData.traces, loadData.traces);
tracingData.networkRecords = loadData.networkRecords;
config.trace && Object.assign(tracingData.traces, loadData.traces);
config.network && (tracingData.networkRecords = loadData.networkRecords);
})
.then(_ => this.tearDown(runOptions));
}, Promise.resolve());
Expand Down

0 comments on commit b798f89

Please sign in to comment.