pkg/package/service/dirstructure.go
Method packageService.ImportPackageFromDirectoryStructure
has 9 return statements (exceeds 4 allowed). Open
Open
func (ps packageService) ImportPackageFromDirectoryStructure(path string, exclude *regexp.Regexp) (*domain.Package, error) {
// Validate that the directory exists
if !util.DoesPathExist(path) {
return nil, fmt.Errorf("given directory does not exist")
}