Skip to content

Commit

Permalink
Merge pull request #15 from kitech/master
Browse files Browse the repository at this point in the history
Fix no result when have warning output
  • Loading branch information
jondot authored May 4, 2019
2 parents a0eb223 + f3ca86f commit 624b44a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/goweight.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ func NewGoWeight() *GoWeight {
}

func (g *GoWeight) BuildCurrent() string {
return strings.Split(strings.TrimSpace(run(g.BuildCmd)), "=")[1]
d := strings.Split(strings.TrimSpace(run(g.BuildCmd)), "\n")[0]
return strings.Split(strings.TrimSpace(d), "=")[1]
}

func (g *GoWeight) Process(work string) []*ModuleEntry {
Expand Down

0 comments on commit 624b44a

Please sign in to comment.