fix tool args bug
This commit is contained in:
parent
3c502fbdf7
commit
2b285b5e62
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue