ineffassign fixed
This commit is contained in:
parent
cf6e0c135c
commit
4f96aa28d6
@ -224,7 +224,6 @@ func (p *Project) Reload(path string, stop <-chan bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if install.Err == nil && build.Err == nil && p.Tools.Run.Status {
|
if install.Err == nil && build.Err == nil && p.Tools.Run.Status {
|
||||||
var start time.Time
|
|
||||||
result := make(chan Response)
|
result := make(chan Response)
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
@ -247,7 +246,6 @@ func (p *Project) Reload(path string, stop <-chan bool) {
|
|||||||
}()
|
}()
|
||||||
go func() {
|
go func() {
|
||||||
log.Println(p.pname(p.Name, 1), ":", "Running..")
|
log.Println(p.pname(p.Name, 1), ":", "Running..")
|
||||||
start = time.Now()
|
|
||||||
err := p.run(p.Path, result, stop)
|
err := p.run(p.Path, result, stop)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
msg := fmt.Sprintln(p.pname(p.Name, 2), ":", Red.Regular(err))
|
msg := fmt.Sprintln(p.pname(p.Name, 2), ":", Red.Regular(err))
|
||||||
|
Loading…
Reference in New Issue
Block a user