MCPcopy Index your code
hub / github.com/devploit/debugHunter / clearFindings

Function clearFindings

background.js:476–484  ·  view source on GitHub ↗
(type = null)

Source from the content-addressed store, hash-verified

474}
475
476async function clearFindings(type = null) {
477 if (type) {
478 const findings = await getFindings();
479 findings[type] = [];
480 await saveFindings(findings);
481 } else {
482 await saveFindings({ params: [], headers: [], paths: [] });
483 }
484}
485
486function updateBadge(findings) {
487 const total = findings.params.length + findings.headers.length + findings.paths.length;

Callers 1

background.jsFile · 0.70

Calls 2

saveFindingsFunction · 0.85
getFindingsFunction · 0.70

Tested by

no test coverage detected