portainer/portainer

View on GitHub
api/filesystem/serialize.go

Summary

Maintainability
A
50 mins
Test Coverage

Function LoadDir has 8 return statements (exceeds 4 allowed).
Open

func LoadDir(dir string) ([]DirEntry, error) {
    var dirEntries []DirEntry

    err := filepath.WalkDir(
        dir,
Severity: Major
Found in api/filesystem/serialize.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status