mirror of
https://github.com/duke-git/lancet.git
synced 2025-10-05 07:26:51 +08:00
fix: fix lint issue
This commit is contained in:
@@ -84,10 +84,8 @@ func Debounced(fn func(), duration time.Duration) func() {
|
||||
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case <-timer.C:
|
||||
go fn()
|
||||
}
|
||||
<-timer.C
|
||||
go fn()
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user