Skip to content

Commit b97d0da

Browse files
committed
fix: Fix incomplete scanning of unassociated backups issue
1 parent b1ceb2e commit b97d0da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

agent/app/service/device_clean.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,6 @@ func loadUnknownApps(fileOp fileUtils.FileOp, recordMap map[string][]string) dto
383383
for _, item := range val {
384384
excludePaths = append(excludePaths, path.Join(global.Dir.LocalBackupDir, itemName, item))
385385
}
386-
} else {
387-
excludePaths = append(excludePaths, path.Join(global.Dir.LocalBackupDir, itemName))
388386
}
389387
}
390388
backupPath := path.Join(global.Dir.LocalBackupDir, "app")
@@ -435,8 +433,6 @@ func loadUnknownWebsites(fileOp fileUtils.FileOp, recordMap map[string][]string)
435433
for _, item := range val {
436434
excludePaths = append(excludePaths, path.Join(global.Dir.LocalBackupDir, itemName, item))
437435
}
438-
} else {
439-
excludePaths = append(excludePaths, path.Join(global.Dir.LocalBackupDir, itemName))
440436
}
441437
}
442438
backupPath := path.Join(global.Dir.LocalBackupDir, "website")

0 commit comments

Comments
 (0)