grokify/mogo

View on GitHub
image/imageutil/image_ext.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func writeJPEG(w io.Writer, img image.Image, opt *JPEGEncodeOptions) error {
    if w == nil {
        return ErrWriterNotSet
    } else if img == nil {
        return ErrImageNotSet
Severity: Major
Found in image/imageutil/image_ext.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status