未验证 提交 78b3fc88 编写于 作者: P Phodal Huang

fix: fix linit issue

上级 f61d61e1
...@@ -23,7 +23,7 @@ install: true ...@@ -23,7 +23,7 @@ install: true
script: script:
- go test -v ./... - go test -v ./...
- $HOME/gopath/bin/ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --coverpkg gitserver --trace --race --compilers=2 - ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --coverpkg gitserver --trace --race --compilers=2
# #
#os: #os:
......
...@@ -88,7 +88,7 @@ var gitCmd *cobra.Command = &cobra.Command{ ...@@ -88,7 +88,7 @@ var gitCmd *cobra.Command = &cobra.Command{
if relatedConfig != "" { if relatedConfig != "" {
config, err := ioutil.ReadFile(relatedConfig) config, err := ioutil.ReadFile(relatedConfig)
if err != nil { if err != nil {
_ = fmt.Errorf("🥯 🦆 🦉 🥓 🦄 🦀 🖕 🍣 🍤 🍥 , lost related json", err) _ = fmt.Errorf("lost related json %s", err)
return return
} }
......
...@@ -55,7 +55,7 @@ var reverseCmd = &cobra.Command{ ...@@ -55,7 +55,7 @@ var reverseCmd = &cobra.Command{
acmd := exec.Command("dot", []string{"-Tsvg", config.CocaConfig.ReporterPath + "/rcall.dot", "-o", config.CocaConfig.ReporterPath + "/rcall.svg"}...) acmd := exec.Command("dot", []string{"-Tsvg", config.CocaConfig.ReporterPath + "/rcall.dot", "-o", config.CocaConfig.ReporterPath + "/rcall.svg"}...)
output, err := acmd.CombinedOutput() output, err := acmd.CombinedOutput()
if err != nil { if err != nil {
log.Fatalf("cmd.Run() failed with %s\n", err, string(output)) log.Fatalf("cmd.Run() failed with %s%s\n", err, string(output))
} }
}, },
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册