Merge pull request #455 from cuishuang/main

Remove duplicate and redundant code
This commit is contained in:
xiaoyaofenfen
2024-10-29 13:49:09 +08:00
committed by GitHub
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -203,8 +203,6 @@ driveName - 网盘名称,backup(备份盘),resource(资源盘)
}
if policy == string(syncdrive.SyncPolicyExclusive) {
task.Policy = syncdrive.SyncPolicyExclusive
} else if policy == string(syncdrive.SyncPolicyIncrement) {
task.Policy = syncdrive.SyncPolicyIncrement
} else {
task.Policy = syncdrive.SyncPolicyIncrement
}
-2
View File
@@ -245,8 +245,6 @@ func (t *SyncTask) Start() error {
go t.scanLocalFile(t.ctx)
} else if t.Mode == Download {
go t.scanPanFile(t.ctx)
} else if t.Mode == SyncTwoWay {
return fmt.Errorf("异常:暂不支持该模式。")
} else {
return fmt.Errorf("异常:暂不支持该模式。")
}