Add static code analysis to CI test (#1197)

This commit is contained in:
Ta-Ching Chen
2019-06-02 14:29:38 +08:00
committed by GitHub
parent 1562cba420
commit 93d4f2c77a
23 changed files with 130 additions and 146 deletions
+1 -1
View File
@@ -115,8 +115,8 @@ func DumpInfo(c *cli.Context) error {
panic(err)
}
}
wg.Add(1)
go func(res resources.Resource, dir string) {
wg.Add(1)
defer wg.Done()
res.Dump(dir)
}(res, dir)
@@ -25,8 +25,7 @@ import (
)
type FissionVersion struct {
client *client.Client
namespace string
client *client.Client
}
func NewFissionVersion(client *client.Client) Resource {
@@ -244,6 +244,4 @@ func (res KubernetesPodLogDumper) Dump(dumpDir string) {
}
wg.Wait()
return
}