soumya92/barista

View on GitHub
modules/github/github.go

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Method Module.getNotifications has 5 return statements (exceeds 4 allowed).
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)
    }
Severity: Major
Found in modules/github/github.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status