(pluginId: string)
| 197 | * a flagged plugin notification in /plugins. |
| 198 | */ |
| 199 | export async function removeFlaggedPlugin(pluginId: string): Promise<void> { |
| 200 | if (cache === null) { |
| 201 | cache = await readFromDisk() |
| 202 | } |
| 203 | if (!(pluginId in cache)) return |
| 204 | |
| 205 | const { [pluginId]: _, ...rest } = cache |
| 206 | cache = rest |
| 207 | await writeToDisk(rest) |
| 208 | } |
no test coverage detected