(d680164f11dbec9ad593c55030387b0bbf1a116d)
This commit is contained in:
parent
65eea82c3e
commit
2b5e4b4d96
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ func graphItemFromString(s string, r *git.Repository) (GraphItem, error) {
|
||||||
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s. Expect 1 or two fields", s)
|
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s. Expect 1 or two fields", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
rows := strings.Split(data, "|")
|
rows := strings.SplitN(data, "|", 8)
|
||||||
if len(rows) != 8 {
|
if len(rows) < 8 {
|
||||||
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
|
return GraphItem{}, fmt.Errorf("Failed parsing grap line:%s - Should containt 8 datafields", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue