()
| 60 | } |
| 61 | |
| 62 | func (a *PullReqActivity) IsValidCodeComment() bool { |
| 63 | return a.Type == enum.PullReqActivityTypeCodeComment && |
| 64 | a.Kind == enum.PullReqActivityKindChangeComment && |
| 65 | a.CodeComment != nil |
| 66 | } |
| 67 | |
| 68 | func (a *PullReqActivity) AsCodeComment() *CodeComment { |
| 69 | if !a.IsValidCodeComment() { |
no outgoing calls
no test coverage detected