(highlight)
| 76 | } |
| 77 | |
| 78 | delete(highlight) { |
| 79 | if (this.highlights.has(highlight)) { |
| 80 | let updatedHighlight = this.highlights.get(highlight); |
| 81 | this.highlights.set(highlight, updatedHighlight); |
| 82 | |
| 83 | // Todo: delete this tag from all the posts before |
| 84 | // deleting it |
| 85 | |
| 86 | this.save(); |
| 87 | } |
| 88 | |
| 89 | return this.index; |
| 90 | } |
| 91 | |
| 92 | save() { |
| 93 | if (!this.pilePath) return; |
no test coverage detected