Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ removeStoreFileIfEmpty
Function
removeStoreFileIfEmpty
packages/desktop/src/main/store.ts:26–28 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
24
}
25
26
export
async
function
removeStoreFileIfEmpty(name: string) {
27
if
(
await
deleteStoreFileIfEmpty(electron.app.getPath(
"userData"
), name)) cache.delete(name)
28
}
Callers
1
registerIpcHandlers
Function · 0.90
Calls
2
deleteStoreFileIfEmpty
Function · 0.90
delete
Method · 0.45
Tested by
no test coverage detected