mirror of
https://github.com/beego/bee.git
synced 2024-12-24 03:00:49 +00:00
Fix staticcheck failed - should use time.Until instead of t.Sub(time.Now()) (S1024)
This commit is contained in:
parent
19be52dc8c
commit
79d6746aa2
@ -227,7 +227,7 @@ func startWatcher(paths []string, ch chan int) {
|
||||
|
||||
// Wait 1s before re-build until there is no file change
|
||||
scheduleTime := time.Now().Add(1 * time.Second)
|
||||
time.Sleep(scheduleTime.Sub(time.Now()))
|
||||
time.Until(scheduleTime)
|
||||
_, err := buildDebug()
|
||||
if err != nil {
|
||||
utils.Notify("Build Failed: "+err.Error(), "bee")
|
||||
|
Loading…
Reference in New Issue
Block a user