mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-10 10:15:31 +02:00
⚡️ Remove unneded delays
This commit is contained in:
parent
f558a98c7b
commit
baaddb12af
2 changed files with 24 additions and 40 deletions
|
@ -8,6 +8,7 @@ import { log } from '..'
|
|||
import {
|
||||
Config,
|
||||
configPath,
|
||||
delay,
|
||||
getLatestFF,
|
||||
projectDir,
|
||||
SupportedProducts,
|
||||
|
@ -21,7 +22,7 @@ export async function setupProject(): Promise<void> {
|
|||
try {
|
||||
if (existsSync(configPath)) {
|
||||
log.warning('There is already a config file. This will overwrite it!')
|
||||
await sleep(1000)
|
||||
await delay(1000)
|
||||
}
|
||||
|
||||
if (configPath.includes('.optional')) {
|
||||
|
@ -194,8 +195,3 @@ async function copyRequired() {
|
|||
})
|
||||
)
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Utility functions
|
||||
|
||||
const sleep = (time: number) => new Promise<void>((r) => setTimeout(r, time))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue