From d01a01a25bb440c9a1b1e439f9b2590c9bcf351e Mon Sep 17 00:00:00 2001 From: alessio Date: Sat, 27 Aug 2016 22:37:46 +0200 Subject: [PATCH] lint --- realize/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/realize/watcher.go b/realize/watcher.go index a962dea..282338e 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -129,7 +129,7 @@ func (p *Project) install(channel chan bool, wr *sync.WaitGroup) { if p.Bin { log.Println(pname(p.Name, 1), ":", "Installing..") start := time.Now() - if err, std := p.GoInstall(); err != nil { + if std, err := p.GoInstall(); err != nil { log.Println(pname(p.Name, 1), ":", fmt.Sprint(Red(err)), std) wr.Done() } else { @@ -157,7 +157,7 @@ func (p *Project) build() { if p.Build { log.Println(pname(p.Name, 1), ":", "Building..") start := time.Now() - if err, std := p.GoBuild(); err != nil { + if std, err := p.GoBuild(); err != nil { log.Println(pname(p.Name, 1), ":", fmt.Sprint(Red(err)), std) } else { log.Println(pname(p.Name, 5), ":", Green("Builded")+" after", MagentaS(big.NewFloat(float64(time.Since(start).Seconds())).Text('f', 3), "s"))