Skip to content

Commit

Permalink
fix: disable check
Browse files Browse the repository at this point in the history
  • Loading branch information
anuj-adobe committed Jan 30, 2025
1 parent be474e8 commit a871bda
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/controllers/sites-audits-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,16 @@ export default (dataAccess) => {
if (site === null) {
return { status: 404, message: `Site with baseURL: ${baseURL} not found.` };
}

// const registeredAudits = configuration.getHandlers();
// if (!registeredAudits[auditType]) {
// return {
// status: 404,
// message: `The "${auditType}" is not present in the configuration. List of allowed audits:`
// + ` ${Object.keys(registeredAudits).join(', ')}.`,
// };
// }
/*

Check failure on line 84 in src/controllers/sites-audits-toggle.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 10 spaces but found 0
const registeredAudits = configuration.getHandlers();
if (!registeredAudits[auditType]) {
return {
status: 404,
message: `The "${auditType}" is not present in the configuration. List of allowed audits:`

Check failure on line 89 in src/controllers/sites-audits-toggle.js

View workflow job for this annotation

GitHub Actions / build

This line has a length of 104. Maximum allowed is 100
+ ` ${Object.keys(registeredAudits).join(', ')}.`,
};
}
*/

hasUpdates = true;
let successMessage;
Expand Down

0 comments on commit a871bda

Please sign in to comment.