Skip to content

Commit

Permalink
Fix eslint issues in extension
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Aug 24, 2016
1 parent f3afbea commit 6be4acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lighthouse-extension/app/src/lighthouse-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ window.getListOfAudits = function() {
};

window.saveAudits = function(audits) {
const listOfAudits = window.getListOfAudits().map(aggregation => aggregation.name);
let storage = {};
storage[STORAGE_KEY] = {};

Expand All @@ -91,7 +90,7 @@ window.fetchAudits = function() {

// create list of default audits
let defaultAudits = {};
window.getListOfAudits().forEach((audit) => {
window.getListOfAudits().forEach(audit => {
defaultAudits[audit.name] = true;
});

Expand Down
3 changes: 2 additions & 1 deletion lighthouse-extension/app/src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ document.addEventListener('DOMContentLoaded', _ => {

const getAuditsFromCategory = audits => _flatten(
Object.keys(audits).filter(audit => audits[audit]).map(audit => {
const auditsInCategory = aggregations.find(aggregation => aggregation.name === audit).criteria;
const auditsInCategory = aggregations
.find(aggregation => aggregation.name === audit).criteria;

return Object.keys(auditsInCategory);
})
Expand Down

0 comments on commit 6be4acf

Please sign in to comment.