(userId: number)
| 698 | const state = states.get(userId); |
| 699 | if (!state) return undefined; |
| 700 | clearCaptchaTimer(state); |
| 701 | states.delete(userId); |
| 702 | return state; |
| 703 | } |
| 704 | |
| 705 | function drainCaptchaStates(): void { |
| 706 | for (const state of states.values()) { |
| 707 | clearCaptchaTimer(state); |
| 708 | } |
| 709 | states.clear(); |
no test coverage detected