mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 17:05:33 +02:00
💬 Correct comments and logs
This commit is contained in:
parent
97a87f5eb4
commit
e79d4b099c
1 changed files with 2 additions and 3 deletions
|
@ -120,12 +120,11 @@ export async function downloadInternals(version: string) {
|
|||
process.exit(1)
|
||||
}
|
||||
|
||||
// If the engine directory is empty, we should delete its contents
|
||||
// If the engine directory is empty, we should delete it.
|
||||
const engineIsEmpty = await readdir(ENGINE_DIR).then((files) => files.length === 0)
|
||||
if (existsSync(ENGINE_DIR) && engineIsEmpty) {
|
||||
log.info("'engine/' is empty, deleting contents...")
|
||||
log.info("'engine/' is empty, it...")
|
||||
rmSync(ENGINE_DIR, { recursive: true })
|
||||
|
||||
}
|
||||
|
||||
if (!existsSync(ENGINE_DIR)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue