()
| 16 | } |
| 17 | |
| 18 | func (cs Comments) CurrentUserComments() []Comment { |
| 19 | var comments []Comment |
| 20 | for _, c := range cs.Nodes { |
| 21 | if c.ViewerDidAuthor { |
| 22 | comments = append(comments, c) |
| 23 | } |
| 24 | } |
| 25 | return comments |
| 26 | } |
| 27 | |
| 28 | type Comment struct { |
| 29 | ID string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected