Better naming (#3486)

This commit is contained in:
Peter Hedenskog 2021-10-14 08:31:24 +02:00 committed by GitHub
parent 427d5a3b5a
commit fd6a84ac6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -131,7 +131,10 @@ module.exports = {
log.error(`Could not find the user timing ${metric}`);
continue;
}
} else if (metricType === 'extras' && tool === 'browsertime') {
} else if (
metricType === 'scriptingmetrics' &&
tool === 'browsertime'
) {
const budgetValue = budgetForThisURL[metricType][metric];
const value = get(
message.data,
@ -154,7 +157,7 @@ module.exports = {
}
continue;
} else {
log.error(`Could not find the extra metric ${metric}`);
log.error(`Could not find the scripting metric ${metric}`);
continue;
}
}