This commit is contained in:
songzhibin97
2020-11-17 21:20:18 +08:00
parent 9bbcb62505
commit 4c2f43b4cf
2 changed files with 5 additions and 6 deletions

View File

@@ -125,7 +125,6 @@ func (w *Watch) watchFile(path string) error {
// chickPower: 判断是否在可控范围内
func chickPower(name string) bool {
name = filepath.Ext(name)
fmt.Println(name)
return name == ".go" || name == ".yaml"
}