args merged

This commit is contained in:
asoseil 2017-12-15 15:40:35 +01:00
parent cd6770313b
commit f8ce9d7c64
1 changed files with 2 additions and 2 deletions

View File

@ -98,9 +98,9 @@ func (t *Tool) Exec(path string, stop <-chan bool) (response Response) {
} else if !strings.HasSuffix(path, ".go") { } else if !strings.HasSuffix(path, ".go") {
return return
} }
args := []string{} args := t.Args
if strings.HasSuffix(path, ".go") { if strings.HasSuffix(path, ".go") {
args = append(t.Args, path) args = append(args, path)
path = filepath.Dir(path) path = filepath.Dir(path)
} }
if s := ext(path); s == "" || s == "go" { if s := ext(path); s == "" || s == "go" {