mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +08:00
Merge pull request #455 from cuishuang/main
Remove duplicate and redundant code
This commit is contained in:
commit
d45ef8c1b9
@ -203,8 +203,6 @@ driveName - 网盘名称,backup(备份盘),resource(资源盘)
|
|||||||
}
|
}
|
||||||
if policy == string(syncdrive.SyncPolicyExclusive) {
|
if policy == string(syncdrive.SyncPolicyExclusive) {
|
||||||
task.Policy = syncdrive.SyncPolicyExclusive
|
task.Policy = syncdrive.SyncPolicyExclusive
|
||||||
} else if policy == string(syncdrive.SyncPolicyIncrement) {
|
|
||||||
task.Policy = syncdrive.SyncPolicyIncrement
|
|
||||||
} else {
|
} else {
|
||||||
task.Policy = syncdrive.SyncPolicyIncrement
|
task.Policy = syncdrive.SyncPolicyIncrement
|
||||||
}
|
}
|
||||||
|
@ -245,8 +245,6 @@ func (t *SyncTask) Start() error {
|
|||||||
go t.scanLocalFile(t.ctx)
|
go t.scanLocalFile(t.ctx)
|
||||||
} else if t.Mode == Download {
|
} else if t.Mode == Download {
|
||||||
go t.scanPanFile(t.ctx)
|
go t.scanPanFile(t.ctx)
|
||||||
} else if t.Mode == SyncTwoWay {
|
|
||||||
return fmt.Errorf("异常:暂不支持该模式。")
|
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("异常:暂不支持该模式。")
|
return fmt.Errorf("异常:暂不支持该模式。")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user