()
| 88 | |
| 89 | // Function to check if the sudo table is not empty |
| 90 | async function isSudoTableNotEmpty() { |
| 91 | try { |
| 92 | const data = loadSudoData(); |
| 93 | // Check if the sudo data contains any entries |
| 94 | return Object.keys(data).length > 0; |
| 95 | } catch (error) { |
| 96 | console.error("Error checking if the sudo table is empty:", error); |
| 97 | return false; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | module.exports = { |
| 102 | issudo, |
nothing calls this directly
no test coverage detected