Skip to content

Commit

Permalink
refactor: replace Bun.sleep with setTimeout
Browse files Browse the repository at this point in the history
- Replaced Bun.sleep function with setTimeout for better compatibility.
  • Loading branch information
RaulCatalinas committed Apr 29, 2024
1 parent de8d8a2 commit bd91587
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/controllers/handlers-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import { REPOSITORY } from '@/constants/github'
import opener from 'opener'

export const handlerOptionBuild = () => {
console.log("Generating Husky's configuration")
console.log("Generating Husky's configuration...")

// code...
}

export const handlerOptionCollaborate = async () => {
export const handlerOptionCollaborate = () => {
console.log('Open GitHub repository for collaboration...')
await Bun.sleep(500)
opener(REPOSITORY)

setTimeout(() => opener(REPOSITORY), 500)
}

0 comments on commit bd91587

Please sign in to comment.