this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(controller): use SplitSeq instead of Split

Khue Doan 7d164a9d 6e82b344

+2 -2
+2 -2
controller/activities/graph.go
··· 81 81 func NewGraphFromDot(dot string) (*Graph, error) { 82 82 graph := NewGraph() 83 83 84 - lines := strings.Split(dot, "\n") 85 - for _, line := range lines { 84 + lines := strings.SplitSeq(dot, "\n") 85 + for line := range lines { 86 86 line = strings.TrimSpace(line) 87 87 if line == "" || strings.HasPrefix(line, "//") || line == "digraph {" || line == "}" { 88 88 continue