dotcloud/docker

View on GitHub
api/server/httpstatus/status.go

Summary

Maintainability
A
40 mins
Test Coverage

Function FromError has 6 return statements (exceeds 4 allowed).
Open

func FromError(err error) int {
    if err == nil {
        log.G(context.TODO()).WithError(err).Error("unexpected HTTP error handling")
        return http.StatusInternalServerError
    }
Severity: Major
Found in api/server/httpstatus/status.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status