Skip to content

Commit

Permalink
fix(config): keep defaultPass on rebuild (#2671)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored and patrickhulce committed Jul 11, 2017
1 parent 98d85cc commit 78e761a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighthouse-core/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ class Config {
}).filter(pass => {
// remove any passes lacking concrete gatherers, unless they are dependent on the trace
if (pass.recordTrace) return true;
// Always keep defaultPass
if (pass.passName === 'defaultPass') return true;
return pass.gatherers.length > 0;
});
return filteredPasses;
Expand Down

0 comments on commit 78e761a

Please sign in to comment.