grokify/mogo

View on GitHub
image/imageutil/read.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ReadImageHTTP has 5 return statements (exceeds 4 allowed).
Open

func ReadImageHTTP(imageURL string) (image.Image, string, error) {
    imageURL = strings.TrimSpace(imageURL)
    if !urlutil.IsHTTP(imageURL, true, true) {
        return nil, "", errors.New("url is not valid")
    }
Severity: Major
Found in image/imageutil/read.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status