Skip to content

Commit

Permalink
Add check for invalid budger alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Oct 9, 2016
1 parent 01723c9 commit afd776f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SpeedTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SpeedTracker.prototype._processBudgets = function (profileData, result) {
infractionType = 'min'
}

if (infractionType) {
if (infractionType && (budget.alerts instanceof Array)) {
budget.alerts.forEach(alertName => {
infractorsByAlert[alertName] = infractorsByAlert[alertName] || []

Expand Down

0 comments on commit afd776f

Please sign in to comment.