Skip to content

Commit

Permalink
Fix no result when have warning output
Browse files Browse the repository at this point in the history
  • Loading branch information
drswinghead committed May 4, 2019
1 parent a0eb223 commit f3ca86f
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 f3ca86f

Please sign in to comment.