grokify/mogo

View on GitHub
mime/mimeutil/mediatype.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func IsType(mediaType, s string) bool {
    mediaType = strings.ToLower(strings.TrimSpace(mediaType))
    s = strings.ToLower(strings.TrimSpace(s))
    if s == mediaType {
        return true
Severity: Major
Found in mime/mimeutil/mediatype.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status