MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / formatImportActivityMessage

Function formatImportActivityMessage

Script/FastDork.js:2497–2507  ·  view source on GitHub ↗
(count, duplicateCount, prefix = "")

Source from the content-addressed store, hash-verified

2495 }
2496
2497 function formatImportActivityMessage(count, duplicateCount, prefix = "") {
2498 const importedCount = Number(count) || 0;
2499 const alreadyImportedCount = Number(duplicateCount) || 0;
2500 const detail =
2501 importedCount > 0
2502 ? `+${importedCount} imported`
2503 : alreadyImportedCount > 0
2504 ? "0 imported - already in the list"
2505 : "0 imported";
2506 return prefix ? `${prefix} · ${detail}` : detail;
2507 }
2508
2509 async function consumeLastImportActivity(
2510 source = "popup",

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected