1set/starlet

View on GitHub
lib/file/copy.go

Summary

Maintainability
A
1 hr
Test Coverage

Function copyFileGo has 11 return statements (exceeds 4 allowed).
Open

func copyFileGo(src, dst string, overwrite bool) (string, error) {
    // No empty input
    if src == emptyStr {
        return emptyStr, errors.New("source path is empty")
    }
Severity: Major
Found in lib/file/copy.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status