image/imageutil/read.go
Function ReadImageHTTP
has 5 return statements (exceeds 4 allowed). Open
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")
}