Skip to content

Commit 7cb8186

Browse files
committed
ref(confd.go): fix golint error
1 parent c8c84b9 commit 7cb8186

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/confd/confd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ func RunOnce(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
4545
var lasterr error
4646
start := time.Now()
4747
for i := 0; i < limit; i++ {
48-
if out, err := exec.Command("confd", dargs...).CombinedOutput(); err == nil {
48+
out, err := exec.Command("confd", dargs...).CombinedOutput()
49+
if err == nil {
4950
log.Infof(c, "Templates generated for %s on run %d", node, i)
5051
return out, nil
51-
} else {
52-
log.Debugf(c, "Recoverable error: %s", err)
53-
log.Debugf(c, "Output: %q", out)
54-
lasterr = err
5552
}
53+
log.Debugf(c, "Recoverable error: %s", err)
54+
log.Debugf(c, "Output: %q", out)
55+
lasterr = err
5656

5757
time.Sleep(timeout)
5858
log.Infof(c, "Re-trying template build. (Elapsed time: %d)", time.Now().Sub(start)/time.Second)

0 commit comments

Comments
 (0)