(error: Error)
| 15 | let isCompleted = false |
| 16 | |
| 17 | const safeReject = (error: Error) => { |
| 18 | if (!isCompleted) { |
| 19 | isCompleted = true |
| 20 | reject(error) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | const safeResolve = (result: T) => { |
| 25 | if (!isCompleted) { |
no outgoing calls
no test coverage detected