mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
chore: format code
This commit is contained in:
parent
6a8f07c19e
commit
86b9541fcb
1 changed files with 2 additions and 2 deletions
|
|
@ -7,11 +7,11 @@ const os = require("os")
|
|||
|
||||
function cleanupTempDirectories() {
|
||||
if (os.platform() !== "win32") return
|
||||
|
||||
|
||||
try {
|
||||
const globalNodeModules = path.join(process.env.APPDATA || "", "npm", "node_modules")
|
||||
if (!fs.existsSync(globalNodeModules)) return
|
||||
|
||||
|
||||
const entries = fs.readdirSync(globalNodeModules, { withFileTypes: true })
|
||||
for (const entry of entries) {
|
||||
if (entry.isDirectory() && entry.name.startsWith(".opencode-ai-")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue