text indentation
This commit is contained in:
parent
09158b795d
commit
524ed2d234
|
@ -45,7 +45,7 @@ func (p *Project) Watching(){
|
|||
if !Ignore(path,p.Watcher.Ignore) {
|
||||
if (info.IsDir() && len(filepath.Ext(path)) == 0 && !strings.Contains(path, "/.")) || (InArray(filepath.Ext(path), p.Watcher.Exts)){
|
||||
if p.Watcher.Preview {
|
||||
fmt.Println(p.Name + ": " + path)
|
||||
fmt.Println(p.Name + ": \t" + path)
|
||||
}
|
||||
if err = watcher.Add(path); err != nil {
|
||||
return filepath.SkipDir
|
||||
|
@ -77,6 +77,8 @@ func (p *Project) Watching(){
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println("\nWatching..\n")
|
||||
|
||||
for {
|
||||
select {
|
||||
case event := <-watcher.Events:
|
||||
|
|
Loading…
Reference in New Issue