Skip to content

Commit

Permalink
fix: temporarily disabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
anuj-adobe committed Jan 30, 2025
1 parent 2eac3e8 commit be474e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/controllers/sites-audits-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ export default (dataAccess) => {
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(', ')}.`,
};
}
// 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 107. Maximum allowed is 100
// + ` ${Object.keys(registeredAudits).join(', ')}.`,
// };
// }

hasUpdates = true;
let successMessage;
Expand Down

0 comments on commit be474e8

Please sign in to comment.