modules/github/github.go
Method Module.getNotifications
has 5 return statements (exceeds 4 allowed). Open
Open
func (m *Module) getNotifications(client *http.Client) (Notifications, error) {
req, _ := http.NewRequest("GET", "https://api.github.com/notifications", nil)
if m.lastModified != "" {
req.Header.Add("If-Modified-Since", m.lastModified)
}