(count: number)
| 33 | |
| 34 | // created by chatgpt |
| 35 | export function formatThreadCount(count: number): string { |
| 36 | if (count === 0) { |
| 37 | return "No Threads"; |
| 38 | } else { |
| 39 | const threadCount = count.toString().padStart(2, "0"); |
| 40 | const threadWord = count === 1 ? "Thread" : "Threads"; |
| 41 | return `${threadCount} ${threadWord}`; |
| 42 | } |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…