(index: number)
| 89 | await this.db.write(); |
| 90 | } |
| 91 | |
| 92 | // 删除aff |
| 93 | private async removeAff(index: number): Promise<boolean> { |
| 94 | await this.initDB(); |
| 95 | const affs = this.db.data.affs; |
| 96 | if (index >= 0 && index < affs.length) { |
| 97 | affs.splice(index, 1); |
| 98 | await this.db.write(); |
| 99 | return true; |
| 100 | } |
| 101 | return false; |
| 102 | } |
| 103 |
no test coverage detected