api/filesystem/serialize_per_dev_configs.go
Function shouldIncludeEntry
has 5 return statements (exceeds 4 allowed). Open
Open
func shouldIncludeEntry(dirEntry DirEntry, deviceName, configPath string, filterType portainer.PerDevConfigsFilterType) bool {
// Include all entries outside of dir A
if !isInConfigRootDir(dirEntry, configPath) {
return true